From ab3ebe8559158a33872d4078f44997103bb78d89 Mon Sep 17 00:00:00 2001 From: BattlefieldDuck <29337428+BattlefieldDuck@users.noreply.github.com> Date: Sat, 30 Nov 2024 04:01:22 +0800 Subject: [PATCH] Update workflows --- .github/workflows/docker-publish-gpr.yml | 4 ++-- .github/workflows/docker-publish-hub.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-publish-gpr.yml b/.github/workflows/docker-publish-gpr.yml index 475e02a..b077fc2 100644 --- a/.github/workflows/docker-publish-gpr.yml +++ b/.github/workflows/docker-publish-gpr.yml @@ -35,9 +35,9 @@ jobs: buildid=$(jq -r '.branches.public.buildid' depot.json) echo "REMOTE_BUILDID=$buildid" >> $GITHUB_ENV if [ "${{ matrix.tag }}" == "latest" ]; then - echo "TAG=${REMOTE_BUILDID}" >> $GITHUB_ENV + echo "TAG=$buildid" >> $GITHUB_ENV else - echo "TAG=${REMOTE_BUILDID}-${{ matrix.tag }}" >> $GITHUB_ENV + echo "TAG=$buildid-${{ matrix.tag }}" >> $GITHUB_ENV fi - name: Check if tag exists diff --git a/.github/workflows/docker-publish-hub.yml b/.github/workflows/docker-publish-hub.yml index 73a7fa6..768d435 100644 --- a/.github/workflows/docker-publish-hub.yml +++ b/.github/workflows/docker-publish-hub.yml @@ -34,9 +34,9 @@ jobs: buildid=$(jq -r '.branches.public.buildid' depot.json) echo "REMOTE_BUILDID=$buildid" >> $GITHUB_ENV if [ "${{ matrix.tag }}" == "latest" ]; then - echo "TAG=${REMOTE_BUILDID}" >> $GITHUB_ENV + echo "TAG=$buildid" >> $GITHUB_ENV else - echo "TAG=${REMOTE_BUILDID}-${{ matrix.tag }}" >> $GITHUB_ENV + echo "TAG=$buildid-${{ matrix.tag }}" >> $GITHUB_ENV fi - name: Check if tag exists