-
Notifications
You must be signed in to change notification settings - Fork 19
/
jenkins-x.yml
executable file
·51 lines (51 loc) · 1.67 KB
/
jenkins-x.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
buildPack: javascript
pipelineConfig:
agent:
image: entando-jx-nodejs12
pipelines:
pullRequest:
build:
replace: true
steps:
- sh: npm install
name: npm-install
- sh: JX=true npm run precommit
name: npm-test
postBuild:
replace: true
steps: []
promote:
replace: true
steps: []
release:
build:
replace: true
steps:
# - sh: jx step credential -s jenkins-npm-token -k file -f /builder/home/.npmrc --optional=true
# name: npmrc
- sh: >-
npm install;
npm rebuild node-sass;
npm run lint;
name: npm-install
- sh: JX=true npm run coverage
name: npm-test
- sh: >-
export USE_MOCKS=false;
export PUBLIC_URL=/app-builder;
export DOMAIN=/entando-de-app;
export COMPONENT_REPOSITORY_UI_ENABLED=true;
export KEYCLOAK_ENABLED=true;
npm run build --production;
name: npm-build
- sh: export VERSION=`cat VERSION` && skaffold build -f skaffold.yaml
name: container-build
- sh: jx step post build --image $DOCKER_REGISTRY/$ORG/$APP_NAME:\$(cat VERSION)
name: post-build
promote:
replace: true
steps:
- sh: >-
kubectl patch configmap entando-docker-image-info-v6.3 -n entando -p \
"{\"data\":{\"app-builder\":\"{\\\"version\\\":\\\"${VERSION}\\\",\\\"executable-type\\\":\\\"n/a\\\",\\\"registry\\\":\\\"${DOCKER_REGISTRY}\\\",\\\"organization\\\":\\\"entando\\\"}\"}}"
name: update-image-map