From 2c11d005a326783319e634443129539aa7c8987a Mon Sep 17 00:00:00 2001 From: Nas Code Date: Fri, 22 Nov 2024 17:18:45 +0800 Subject: [PATCH] update --- .github/workflows/docker-image.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 3d51106..00afc4e 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -26,7 +26,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.CR_PAT }} - name: Build and push - id: push + id: push_github if: ${{ github.event_name == 'push' }} uses: docker/build-push-action@v6 with: @@ -34,7 +34,7 @@ jobs: push: true tags: ghcr.io/dream10201/115docker:dev,docker.io/xiuxiu10201/115:dev - name: Build and push - id: push + id: push_docker if: ${{ github.event_name == 'workflow_dispatch' }} uses: docker/build-push-action@v6 with: @@ -45,11 +45,11 @@ jobs: uses: actions/attest-build-provenance@v1 with: subject-name: ghcr.io/dream10201/115docker - subject-digest: ${{ steps.push.outputs.digest }} + subject-digest: ${{ steps.push_github.outputs.digest }} push-to-registry: true - name: Attest for docker uses: actions/attest-build-provenance@v1 with: subject-name: index.docker.io/dream10201/115docker - subject-digest: ${{ steps.push.outputs.digest }} + subject-digest: ${{ steps.push_docker.outputs.digest }} push-to-registry: true \ No newline at end of file