From 6f02272578c4af32ac2eac6aa953defede5b5340 Mon Sep 17 00:00:00 2001 From: Lexie Malina Date: Fri, 29 Nov 2024 21:42:51 -0600 Subject: [PATCH] Fix tag names (cherry picked from commit adbd652e3cbfd47aa2b03334cf1729ebebc077f2) --- .github/workflows/publish-snapshot.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index 78b349c25..de97bdf9b 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -57,12 +57,16 @@ jobs: username: "${{ secrets.DOCKERHUB_USERNAME }}" password: "${{ secrets.DOCKERHUB_TOKEN }}" + - name: Extract branch name + shell: bash + run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT + id: extract_branch + - name: "Build and push" id: docker_build uses: docker/build-push-action@v3 with: context: . push: true - tags: | - technicolorlabs/reposilite-liberica-testing:${{ github.ref_name }} + tags: technicolorlabs/reposilite-liberica-testing:${{ steps.extract_branch.outputs.branch }}