From dca5eb3c9df51eed76d243e8ed47aa28c945a046 Mon Sep 17 00:00:00 2001 From: Andre Wanlin Date: Sun, 3 Mar 2024 13:02:08 +0100 Subject: [PATCH] Docker Deploy Image tag version when available Signed-off-by: Andre Wanlin --- .github/workflows/deploy_docker-image.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy_docker-image.yml b/.github/workflows/deploy_docker-image.yml index 9012563628..f6cd52b284 100644 --- a/.github/workflows/deploy_docker-image.yml +++ b/.github/workflows/deploy_docker-image.yml @@ -7,6 +7,7 @@ on: env: RELEASE_VERSION: v${{ github.event.client_payload.version }} + TAG_VERSION: ghcr.io/${{ github.repository_owner }}/backstage:${{ github.event.client_payload.version }} jobs: build: @@ -68,6 +69,6 @@ jobs: platforms: linux/amd64,linux/arm64 tags: | ghcr.io/${{ github.repository_owner }}/backstage:latest - ghcr.io/${{ github.repository_owner }}/backstage:${{ github.event.client_payload.version }} + ${{ github.event.client_payload.version && env.TAG_VERSION || '' }} labels: | org.opencontainers.image.description=Docker image generated from the latest Backstage release; this contains what you would get out of the box by running npx @backstage/create-app and building a Docker image from the generated source. This is meant to ease the process of evaluating Backstage for the first time, but also has the severe limitation that there is no way to install additional plugins relevant to your infrastructure.