From f1dc64dcc2c15fb7e38291b702b474d4d70c3507 Mon Sep 17 00:00:00 2001 From: zijiren233 Date: Sat, 18 Jan 2025 04:49:55 +0800 Subject: [PATCH] fix: no need login when build docker --- .github/workflows/release.yml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64f026f..20ed67b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -177,21 +177,6 @@ jobs: runs-on: ubuntu-24.04-arm runs-on: ${{ matrix.runs-on || 'ubuntu-24.04' }} steps: - - name: Login to GitHub Container Registry - if: ${{ github.event_name != 'pull_request' }} - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Login to DockerHub - uses: docker/login-action@v3 - if: ${{ github.event_name != 'pull_request' && env.DOCKERHUB_REPO }} - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Checkout uses: actions/checkout@v4 with: @@ -228,7 +213,7 @@ jobs: push: false labels: ${{ steps.meta.outputs.labels }} platforms: linux/${{ matrix.arch }} - outputs: type=image,"name=${{ env.DOCKERHUB_REPO }},${{ env.GHCR_REPO }}",push-by-digest=true,name-canonical=true,push=true + outputs: type=image,"name=${{ env.DOCKERHUB_REPO }},${{ env.GHCR_REPO }}",name-canonical=true - name: Export digest run: |