From 54b79f83a2fd8908ae2fb6dfe7001e28884b7472 Mon Sep 17 00:00:00 2001 From: bitqiu Date: Tue, 11 Jun 2024 16:47:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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