Skip to content

Commit

Permalink
Merge pull request #647 from cloudfoundry/update-auto-release-pattern
Browse files Browse the repository at this point in the history
Update auto-release pattern
  • Loading branch information
jpalermo authored May 9, 2024
2 parents 9681201 + 5f72a6e commit 7c10bd3
Showing 1 changed file with 29 additions and 15 deletions.
44 changes: 29 additions & 15 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,6 @@ jobs:
params:
PREVIOUS_BINARY_PATTERN: bosh-cli-*-linux-amd64
CURRENT_BINARY_PATTERN: bosh-cli-*-linux-amd64
on_success:
do:
- put: release-notes
params:
file: release-notes/release-notes.md
- put: version-semver
params:
bump: patch
- try:
task: check-for-patched-cves
file: golang-release/ci/tasks/shared/check-for-patched-cves.yml
Expand All @@ -180,20 +172,42 @@ jobs:
params:
SEVERITY: CRITICAL,HIGH
SOURCE_PATH: # root path
- task: ensure-cve-checker-succeeded
file: golang-release/ci/tasks/shared/ensure-cve-checker-succeeded.yml
image: ubuntu-image
params:
description: |
Since the previous step is wrapped in a "try", this task checks that the previous step fully executed.
- try:
task: check-needs-release
config:
platform: linux
image_resource:
type: docker-image
source: {repository: alpine}
inputs:
- name: release-notes
run:
path: /bin/sh
args:
- -c
- |
if [ -f release-notes/needs-release ]; then
echo "## Release Notes"
echo "${release-notes/release-notes.md}"
exit 0
else
echo "No release needed"
exit 1
fi
on_success:
do:
- put: release-notes
params:
file: patched_cves/release-notes.md
file: release-notes/release-notes.md
- put: version-semver
params:
bump: patch
- task: ensure-cve-checker-succeeded
file: golang-release/ci/tasks/shared/ensure-cve-checker-succeeded.yml
image: ubuntu-image
params:
description: |
Since the previous step is wrapped in a "try", this task checks that the previous step fully executed.

- name: build
public: true
Expand Down

0 comments on commit 7c10bd3

Please sign in to comment.