From 4ab784be3f55adfdee17285c9b9f9ff0301d6231 Mon Sep 17 00:00:00 2001 From: Christopher Schnick Date: Wed, 18 Sep 2024 09:21:06 +0200 Subject: [PATCH] Fixes [stage] --- .github/workflows/docker-push.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml index 41be2b7..cc5d27c 100644 --- a/.github/workflows/docker-push.yml +++ b/.github/workflows/docker-push.yml @@ -29,6 +29,8 @@ jobs: echo "XPIPE_REPOSITORY=$XPIPE_REPOSITORY" >> $GITHUB_ENV XPIPE_PACKAGE=${{ contains(github.event.head_commit.message, '[release]') == true && 'xpipe' || 'xpipe-ptb' }} echo "XPIPE_PACKAGE=$XPIPE_PACKAGE" >> $GITHUB_ENV + XPIPE_TAG=${{ contains(github.event.head_commit.message, '[release]') == true && 'main' || 'ptb' }} + echo "XPIPE_TAG=$XPIPE_TAG" >> $GITHUB_ENV - name: Log in to the Container registry uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 @@ -46,7 +48,9 @@ jobs: org.opencontainers.image.authors=xpipe.io org.opencontainers.image.documentation=https://github.com/xpipe-io/xpipe-webtop flavor: | - latest=true + latest=${{ contains(github.event.head_commit.message, '[release]') == true }} + tags: | + type=raw,value=${{ env.XPIPE_TAG }} - name: Build and push Docker image id: push uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4