From aad8cfb4e56bd9a3523c6e727965e10930b9fa1b Mon Sep 17 00:00:00 2001 From: Martin Alfke Date: Fri, 5 Jan 2024 10:37:19 +0100 Subject: [PATCH 1/2] build latest version for each puppet version remove global latest --- .github/workflows/build_docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_docker.yml b/.github/workflows/build_docker.yml index f4241ac8..7469b0fe 100644 --- a/.github/workflows/build_docker.yml +++ b/.github/workflows/build_docker.yml @@ -43,9 +43,9 @@ jobs: buildfile: puppetserver/Dockerfile tags: | ghcr.io/${{ github.repository }}:${{ matrix.version }}-${{ github.ref_name }} - ghcr.io/${{ github.repository }}:latest + ghcr.io/${{ github.repository }}:${{ matrix.version }}-latest docker.io/${{ github.repository }}:${{ matrix.version }}-${{ github.ref_name }} - docker.io/${{ github.repository }}:latest + docker.io/${{ github.repository }}:${{ matrix.version }}-latest - name: Update Docker Hub Description uses: peter-evans/dockerhub-description@v3 From 5663b61dc4eea706dad0fd08406ae8420d8f52bd Mon Sep 17 00:00:00 2001 From: Martin Alfke Date: Fri, 5 Jan 2024 10:41:59 +0100 Subject: [PATCH 2/2] re-enable global latest --- .github/workflows/build_docker.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build_docker.yml b/.github/workflows/build_docker.yml index 7469b0fe..ec979398 100644 --- a/.github/workflows/build_docker.yml +++ b/.github/workflows/build_docker.yml @@ -44,8 +44,10 @@ jobs: tags: | ghcr.io/${{ github.repository }}:${{ matrix.version }}-${{ github.ref_name }} ghcr.io/${{ github.repository }}:${{ matrix.version }}-latest + ghcr.io/${{ github.repository }}:latest docker.io/${{ github.repository }}:${{ matrix.version }}-${{ github.ref_name }} docker.io/${{ github.repository }}:${{ matrix.version }}-latest + docker.io/${{ github.repository }}:latest - name: Update Docker Hub Description uses: peter-evans/dockerhub-description@v3