This repository has been archived by the owner on Nov 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathjenkins-x.yml
executable file
·73 lines (68 loc) · 2.36 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
70
71
72
73
buildPack: go-cli
dockerRegistryOwner: jenkinsxio-labs
pipelineConfig:
pipelines:
overrides:
- name: container-build
volumes:
- name: gcr-sa
secret:
secretName: gcr-sa
containerOptions:
env:
- name: GCP_SA
value: /secrets/gcr/credentials.json
volumeMounts:
- name: gcr-sa
mountPath: /secrets/gcr
step:
sh: ./build.sh
release:
pipeline:
stages:
- agent:
image: gcr.io/jenkinsxio/builder-go
name: chart
options:
volumes:
- name: chart-sa
secret:
secretName: chart-sa
items:
- key: credentials.json
path: credentials.json
- name: gcr-sa
secret:
secretName: gcr-sa
items:
- key: credentials.json
path: credentials.json
containerOptions:
volumeMounts:
- name: gcr-sa
mountPath: /secrets/gcr
- name: chart-sa
mountPath: /secrets/charts
steps:
- name: build-and-push-image
command: ./build.sh
- name: release-chart
command: make release
image: gcr.io/jenkinsxio-labs/helm:0.0.21
dir: /workspace/source/charts/jxl-boot
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /secrets/charts/credentials.json
- name: release-binary
command: make release
image: golang:1.12
- name: changelog
command: jx step changelog --verbose --header-file=hack/changelog-header.md --version=$VERSION --rev=$PULL_BASE_SHA --output-markdown=changelog.md --update-release=false
image: gcr.io/jenkinsxio/jx
- name: upload-binaries
command: make goreleaser
image: gcr.io/jenkinsxio-labs/go-releaser:0.0.18
- command: ./promote.sh
dir: /workspace/source
name: promote-release
image: gcr.io/jenkinsxio/builder-go