diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a8481d5..cc43136 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,14 +23,10 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Extract branch name - id: extract_branch - run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV - - name: Build and push Docker image uses: docker/build-push-action@v5 with: context: . push: true tags: | - ghcr.io/${{ github.repository }}:${{ env.BRANCH_NAME }} \ No newline at end of file + ghcr.io/${{ github.repository }}:${{ github.ref_name }} \ No newline at end of file