Skip to content

Commit ff97d7e

Browse files
committed
Auto-release CLI on new version of golang
Adds task to the `automatically-release-new-patch` job that compares the golang version of the previously released BOSH CLI binary with the golang version of what would be released. If they're different (in the case of a bumped golang version, or intentional roll back), then an automatic release would be triggered, similar to when CVE fixes are detected.
1 parent 9d7ae13 commit ff97d7e

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)