We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2df7dd2 commit 410994fCopy full SHA for 410994f
.github/workflows/docker-amd-smi.yml
@@ -15,6 +15,10 @@ on:
15
description: "Docker image revision"
16
required: true
17
default: 0
18
+ tag_latest:
19
+ description: "Update 'latest'"
20
+ type: boolean
21
+ default: false
22
23
jobs:
24
build-amd-smi:
@@ -48,4 +52,7 @@ jobs:
48
52
VERSION=$(docker inspect --format '{{ index .Config.Labels "org.opencontainers.image.version" }}' ${IMAGE_NAME})
49
53
docker tag ${IMAGE_NAME}:latest ${IMAGE_NAME}:${VERSION}
50
54
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