From cbe799b1a26677c1282d219fa821ddc53ef9e9f1 Mon Sep 17 00:00:00 2001 From: Alexander Voigt Date: Fri, 28 Jun 2024 08:34:01 +0200 Subject: [PATCH] chore: fix leading v in docker image tag --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 318c50c..df61414 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -137,11 +137,13 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set up ref without leading 'v' + run: echo "STRIPPED_REF_NAME=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV - name: Build uses: docker/build-push-action@v6 with: context: . file: .github/Dockerfile push: true - tags: aoepeople/vistecture:${{ github.ref_name }} - platforms: linux/amd64,linux/arm64 + tags: aoepeople/vistecture:${{ env.STRIPPED_REF_NAME }} + platforms: linux/amd64,linux/arm64 \ No newline at end of file