ci container build: when pushing a version-tagged build, overwrite 'latest' as well

This commit is contained in:
Antonio Vivace
2025-06-08 18:21:58 +02:00
committed by GitHub
parent 804db4e073
commit fa3d83a3d1

View File

@@ -38,6 +38,7 @@ jobs:
sed -i "2i LABEL org.opencontainers.image.description=\"RGBDS container image for the release version $TAG_NAME\"" Dockerfile
docker build . --tag ghcr.io/gbdev/rgbds:$TAG_NAME
docker push ghcr.io/gbdev/rgbds:$TAG_NAME
docker push ghcr.io/gbdev/rgbds:latest
- name: Delete untagged container images
if: github.repository_owner == 'gbdev'