Skip to content

Commit 29cb5cf

Browse files
authored
Merge pull request #642 from cloudfoundry/auto-release-when-golang-is-bumped
Auto-release CLI on new version of golang
2 parents 9d7ae13 + ff97d7e commit 29cb5cf

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

ci/pipeline.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,26 @@ jobs:
151151
- get: golang-release
152152
- get: version-semver
153153
- get: ubuntu-image
154+
- get: release-bucket-linux
155+
- task: build-linux-amd64
156+
file: bosh-cli/ci/tasks/build-linux-amd64.yml
157+
- try:
158+
task: check-for-updated-binary-version
159+
file: golang-release/ci/tasks/shared/check-for-updated-binary-version.yml
160+
input_mapping:
161+
previous_binary: release-bucket-linux
162+
current_binary: compiled-linux-amd64
163+
params:
164+
PREVIOUS_BINARY_PATTERN: bosh-cli-*-linux-amd64
165+
CURRENT_BINARY_PATTERN: bosh-cli-*-linux-amd64
166+
on_success:
167+
do:
168+
- put: release-notes
169+
params:
170+
file: release-notes/release-notes.md
171+
- put: version-semver
172+
params:
173+
bump: patch
154174
- try:
155175
task: check-for-patched-cves
156176
file: golang-release/ci/tasks/shared/check-for-patched-cves.yml

0 commit comments

Comments
 (0)