From 8758da15ac8e8262127d85f48c9915b49f81a05d Mon Sep 17 00:00:00 2001 From: Adrien Guillo Date: Wed, 24 Apr 2024 09:40:25 -0400 Subject: [PATCH] Publish `latest` Docker image tag exclusively for release images --- .github/workflows/publish_docker_images.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_docker_images.yml b/.github/workflows/publish_docker_images.yml index 0e12058471e..a14aafb1a35 100644 --- a/.github/workflows/publish_docker_images.yml +++ b/.github/workflows/publish_docker_images.yml @@ -104,11 +104,14 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY_IMAGE }} + flavor: | + latest=false tags: | type=edge,branch=main - type=edge,branch=main,suffix=-bullseye + type=edge,branch=main,suffix=-slim-bookworm type=semver,pattern={{version}} - type=semver,pattern={{version}},suffix=-bullseye + type=semver,pattern={{version}},value=latest + type=semver,pattern={{version}},suffix=-slim-bookworm type=ref,event=tag - name: Login to Docker Hub uses: docker/login-action@v3