From 020467869a6b9c1c12e30b175468208f84935811 Mon Sep 17 00:00:00 2001 From: Donnie Adams Date: Mon, 11 Nov 2024 06:44:45 -0500 Subject: [PATCH] chore: copy tag to latest Signed-off-by: Donnie Adams --- .github/workflows/docker-build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 1722b012..30b47be9 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -48,6 +48,13 @@ jobs: tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }} platforms: linux/amd64,linux/arm64 + - name: Setup crane + uses: imjasonh/setup-crane@v0.4 + + - name: Copy to latest tag + if: ${{ github.ref_type == 'tag' }} + run: crane tag ghcr.io/${{ github.repository }}:${{ github.ref_name }} ghcr.io/${{ github.repository }}:latest + - name: Deploy to Test Render if: ${{ env.DEPLOY_TO_TEST == 'true' }} uses: joelwmale/webhook-action@2.4.1