Skip to content

Commit 81a5911

Browse files
Shiva Kumarshivakunv
authored andcommitted
Tag git commit sha with bundle image
Signed-off-by: Shiva Kumar (SW-CLOUD) <[email protected]>
1 parent 3575140 commit 81a5911

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,14 @@ jobs:
437437
registry: ghcr.io
438438
username: ${{ github.actor }}
439439
password: ${{ secrets.GITHUB_TOKEN }}
440+
- name: Set environment variables
441+
id: vars
442+
run: |
443+
echo "COMMIT_SHORT_SHA=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
440444
- name: Build bundle-image
441445
env:
442446
BUNDLE_IMAGE: "ghcr.io/nvidia/gpu-operator/gpu-operator-bundle:${{ github.ref_name }}-latest"
443-
BUNDLE_IMAGE_TAG: "ghcr.io/nvidia/gpu-operator/gpu-operator-bundle:${GITHUB_SHA:0:8}"
447+
BUNDLE_IMAGE_TAG: "ghcr.io/nvidia/gpu-operator/gpu-operator-bundle:${{ env.COMMIT_SHORT_SHA }}"
444448
VERSION: ""
445449
DEFAULT_CHANNEL: "stable"
446450
CHANNELS: "stable"

0 commit comments

Comments
 (0)