forked from jenkins-x-plugins/jx-slack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins-x.yml
60 lines (56 loc) · 2.21 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
buildPack: go-cli
pipelineConfig:
pipelines:
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: chart-sa
mountPath: /secrets/charts
- name: gcr-sa
mountPath: /secrets/gcr
steps:
- name: release-binary
command: make release
image: golang:1.12
- name: build-and-push-image
command: /kaniko/executor
image: gcr.io/kaniko-project/executor:9912ccbf8d22bbafbf971124600fbb0b13b9cbd6
args:
- --dockerfile=/workspace/source/Dockerfile
- --destination=gcr.io/jenkinsxio-labs/slack:${inputs.params.version}
- --context=/workspace/source
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /secrets/gcr/credentials.json
- 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: rawlingsj80/goreleaser:wip6
- name: release-chart
command: make release
image: gcr.io/jenkinsxio-labs/helm:0.0.21
dir: /workspace/source/charts/slack
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /secrets/charts/credentials.json