-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjenkins-x.yml
executable file
·69 lines (69 loc) · 2.58 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
pipelineConfig:
agent:
image: go
label: jenkins-go
pipelines:
pullRequest:
pipeline:
agent:
image: go
stages:
- name: run-make
steps:
- command: make linux
name: build-make-linux
- name: everything-else
steps:
- args:
- --cache=true
- --cache-dir=/workspace
- --context=/workspace/source
- --dockerfile=/workspace/source/Dockerfile
- --destination=gcr.io/aps-donkeyspangle/jxsaastest:${inputs.params.version}
- --cache-repo=gcr.io/aps-donkeyspangle/cache
command: /kaniko/executor
dir: /workspace/source
image: gcr.io/kaniko-project/executor:9912ccbf8d22bbafbf971124600fbb0b13b9cbd6
name: build-container-build
- command: jx step post build --image gcr.io/aps-donkeyspangle/jxsaastest:$PREVIEW_VERSION
name: postbuild-post-build
- command: make preview
dir: /workspace/source/charts/preview
name: promote-make-preview
- command: jx preview --app $APP_NAME --dir ../..
dir: /workspace/source/charts/preview
name: promote-jx-preview
release:
pipeline:
agent:
image: go
stages:
- name: run-make
steps:
- command: jx step git credentials
name: setup-jx-git-credentials
- command: make build
name: build-make-build
- name: everything-else
steps:
- args:
- --cache=true
- --cache-dir=/workspace
- --context=/workspace/source
- --dockerfile=/workspace/source/Dockerfile
- --destination=gcr.io/aps-donkeyspangle/jxsaastest:${inputs.params.version}
- --cache-repo=gcr.io/aps-donkeyspangle/cache
command: /kaniko/executor
dir: /workspace/source
image: gcr.io/kaniko-project/executor:9912ccbf8d22bbafbf971124600fbb0b13b9cbd6
name: build-container-build
- command: jx step post build --image gcr.io/aps-donkeyspangle/jxsaastest:${VERSION}
name: build-post-build
- command: jx step changelog --version v${VERSION}
name: promote-changelog
- command: jx step helm release
dir: /workspace/source/charts/jxsaastest
name: promote-helm-release
- command: jx promote -b --all-auto --timeout 1h --version ${VERSION}
dir: /workspace/source/charts/jxsaastest
name: promote-jx-promote