Skip to content

Commit 410994f

Browse files
[Internal] Updated amd-smi CI/CD (#3179)
1 parent 2df7dd2 commit 410994f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/docker-amd-smi.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
description: "Docker image revision"
1616
required: true
1717
default: 0
18+
tag_latest:
19+
description: "Update 'latest'"
20+
type: boolean
21+
default: false
1822

1923
jobs:
2024
build-amd-smi:
@@ -48,4 +52,7 @@ jobs:
4852
VERSION=$(docker inspect --format '{{ index .Config.Labels "org.opencontainers.image.version" }}' ${IMAGE_NAME})
4953
docker tag ${IMAGE_NAME}:latest ${IMAGE_NAME}:${VERSION}
5054
docker push ${IMAGE_NAME}:${VERSION}
51-
docker push ${IMAGE_NAME}:latest
55+
- name: Tag and push latest
56+
if: ${{ inputs.tag_latest }}
57+
run: |
58+
docker push ${{ inputs.image_name }}:latest

0 commit comments

Comments
 (0)