From e8132c6697d2fb697f93470e730990d4c66a169b Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sun, 13 Oct 2024 19:22:38 +0200 Subject: [PATCH] dfgds --- .gitea/workflows/build.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 1cd7120..f037260 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -57,17 +57,13 @@ jobs: id: meta run: | echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT - - name: Extract branch name - shell: bash - run: echo "REPO_BRANCH=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_OUTPUT - id: extract_branch - name: Build and push Docker image uses: https://github.com/docker/build-push-action@v6 with: context: . file: ./Dockerfile push: true - tags: "registry.mgrote.net/${{ steps.meta.outputs.REPO_NAME }}:latest,registry.mgrote.net/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.extract_branch.outputs.REPO_BRANCH }}" + tags: "registry.mgrote.net/${{ steps.meta.outputs.REPO_NAME }}:latest,registry.mgrote.net/${{ steps.meta.outputs.REPO_NAME }}:${{ env.GITHUB_HEAD_REF }}" - name: Send notification uses: dawidd6/action-send-mail@v3 if: failure()