Skip to content

Commit 95501d1

Browse files
committed
CASMINST-7394 Add workflowRef label unique to image to avoid overwriting
We use workflowRef label to identify workflow, which needs to be re-triggered to update image with latest CVE fixes. We also try to re-trigger base image, but workflowRef label of base image is susually overwritten by descendant image build. To avoid that, we will add workflowRef.<image> label, which is unique to image name.
1 parent de73683 commit 95501d1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

build-sign-scan/action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ runs:
171171
org.opencontainers.image.vendor=Hewlett Packard Enterprise Development LP
172172
buildDate=${{ steps.strings.outputs.now }}
173173
workflowRef=${{ github.workflow_ref }}
174+
workflowRef.${{ inputs.docker_repo }}:${{ inputs.docker_tag }}=${{ github.workflow_ref }}
174175
175176
- name: Build Image
176177
id: build

0 commit comments

Comments
 (0)