From af177b4cd8198d02d1181b3ad508df709cfea411 Mon Sep 17 00:00:00 2001 From: Peter Solymos Date: Tue, 2 Jul 2024 01:34:31 -0600 Subject: [PATCH] Apply branch name as tag Signed-off-by: Peter Solymos --- .github/workflows/py-shiny.yml | 5 +++-- .github/workflows/r-shiny.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/py-shiny.yml b/.github/workflows/py-shiny.yml index 0888524..ebacb89 100644 --- a/.github/workflows/py-shiny.yml +++ b/.github/workflows/py-shiny.yml @@ -10,7 +10,6 @@ on: env: SHINY_SETUP: py-shiny - TAG: latest permissions: packages: write @@ -46,5 +45,7 @@ jobs: context: ./${{ env.SHINY_SETUP }} file: ./${{ env.SHINY_SETUP }}/Dockerfile push: true - tags: ghcr.io/${{ github.repository }}/${{ env.SHINY_SETUP }}:${{ env.TAG }} + tags: | + ghcr.io/${{ github.repository }}/${{ env.SHINY_SETUP }}:${{ github.ref_name }} + ghcr.io/${{ github.repository }}/${{ env.SHINY_SETUP }}:latest labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/r-shiny.yml b/.github/workflows/r-shiny.yml index 5a43af8..b7d325c 100644 --- a/.github/workflows/r-shiny.yml +++ b/.github/workflows/r-shiny.yml @@ -10,7 +10,6 @@ on: env: SHINY_SETUP: r-shiny - TAG: latest permissions: packages: write @@ -46,5 +45,7 @@ jobs: context: ./${{ env.SHINY_SETUP }} file: ./${{ env.SHINY_SETUP }}/Dockerfile push: true - tags: ghcr.io/${{ github.repository }}/${{ env.SHINY_SETUP }}:${{ env.TAG }} + tags: | + ghcr.io/${{ github.repository }}/${{ env.SHINY_SETUP }}:${{ github.ref_name }} + ghcr.io/${{ github.repository }}/${{ env.SHINY_SETUP }}:latest labels: ${{ steps.meta.outputs.labels }}