Skip to content

Commit 8f3e357

Browse files
committed
fix: only update latest-cpu/gpu tags on release, not on nightly schedule
1 parent a76387d commit 8f3e357

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/docker.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,13 @@ jobs:
132132
REGISTRY: ${{ secrets.DOCKERHUB_USERNAME }}/mfc
133133
run: |
134134
docker buildx imagetools create -t $REGISTRY:$TAG-cpu $REGISTRY:$TAG-cpu-ubuntu-22.04 $REGISTRY:$TAG-cpu-ubuntu-22.04-arm
135-
docker buildx imagetools create -t $REGISTRY:latest-cpu $REGISTRY:$TAG-cpu-ubuntu-22.04 $REGISTRY:$TAG-cpu-ubuntu-22.04-arm
136135
docker buildx imagetools create -t $REGISTRY:$TAG-gpu $REGISTRY:$TAG-gpu-ubuntu-22.04 $REGISTRY:$TAG-gpu-ubuntu-22.04-arm
136+
137+
- name: Update latest tags
138+
if: github.event_name == 'release'
139+
env:
140+
TAG: ${{ needs.Container.outputs.tag }}
141+
REGISTRY: ${{ secrets.DOCKERHUB_USERNAME }}/mfc
142+
run: |
143+
docker buildx imagetools create -t $REGISTRY:latest-cpu $REGISTRY:$TAG-cpu-ubuntu-22.04 $REGISTRY:$TAG-cpu-ubuntu-22.04-arm
137144
docker buildx imagetools create -t $REGISTRY:latest-gpu $REGISTRY:$TAG-gpu-ubuntu-22.04 $REGISTRY:$TAG-gpu-ubuntu-22.04-arm

0 commit comments

Comments
 (0)