From d79558ba730bc1aedecc7a8d400de5d9de044816 Mon Sep 17 00:00:00 2001 From: Giovanni Toraldo Date: Mon, 5 Aug 2024 14:04:49 +0200 Subject: [PATCH] give up expire label handling - just push additional tags on master only --- .github/workflows/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eafcbdb..c06016e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -123,18 +123,19 @@ jobs: provenance: false target: JAVA_BASE_IMAGE - - name: Push additional image to quay.io + - name: Push additional anchored tag to quay.io + if: github.ref_name == 'master' env: SRC_IMAGE: quay.io/${{ env.IMAGE_REGISTRY_NAMESPACE }}/${{ env.IMAGE_REPOSITORY }}:${{ steps.vars.outputs.image_tag }} DST_IMAGE: quay.io/${{ env.IMAGE_REGISTRY_NAMESPACE }}/${{ env.IMAGE_REPOSITORY }}:${{ steps.vars.outputs.image_tag }}-${{ steps.vars.outputs.timestamp }} run: | docker buildx imagetools create ${{ env.SRC_IMAGE }} -t ${{ env.DST_IMAGE }} - - name: Push Image to docker.io + - name: Push images to docker.io if: github.ref_name == 'master' env: SRC_IMAGE: quay.io/${{ env.IMAGE_REGISTRY_NAMESPACE }}/${{ env.IMAGE_REPOSITORY }}:${{ steps.vars.outputs.image_tag }} DST_IMAGE: ${{ env.IMAGE_REGISTRY_NAMESPACE }}/${{ env.IMAGE_REPOSITORY }}:${{ steps.vars.outputs.image_tag }} run: | docker buildx imagetools create ${{ env.SRC_IMAGE }} -t ${{ env.DST_IMAGE }} - docker buildx imagetools create ${{ env.SRC_IMAGE }}-${{ steps.vars.outputs.timestamp }} -t ${{ env.DST_IMAGE }}-${{ steps.vars.outputs.timestamp }} + docker buildx imagetools create ${{ env.SRC_IMAGE }} -t ${{ env.DST_IMAGE }}-${{ steps.vars.outputs.timestamp }}