Skip to content

Commit ef1f963

Browse files
committed
Fix wrong attr
1 parent 911655e commit ef1f963

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/docker-publish.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
steps:
3535
- name: Checkout repository
3636
uses: actions/checkout@v4
37-
37+
3838
- name: Convert image name to lowercase
3939
run: |
4040
GITHUB_REPOSITORY="${{ github.repository }}"
@@ -49,7 +49,7 @@ jobs:
4949
# Login against a Docker registry except on PR
5050
# https://github.com/docker/login-action
5151
- name: Log into registry ${{ env.REGISTRY }}
52-
if: github.event_name != 'pull_request'
52+
if: ${{ !github.event.pull_request || github.event.pull_request.base.repo.full_name == github.event.pull_request.head.repo.full_name }}
5353
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
5454
with:
5555
registry: ${{ env.REGISTRY }}
@@ -83,15 +83,15 @@ jobs:
8383
platforms: ${{ matrix.platform }}
8484
provenance: true
8585
sbom: true
86-
outputs: type=image,name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=${{ !github.event.pull_request || github.event.pull_request.base.repo == github.event.pull_request.head.repo }}
86+
outputs: type=image,name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=${{ !github.event.pull_request || github.event.pull_request.base.repo.full_name == github.event.pull_request.head.repo.full_name }}
8787
- name: Export digest
88-
if: ${{ !github.event.pull_request || github.event.pull_request.base.repo == github.event.pull_request.head.repo }}
88+
if: ${{ !github.event.pull_request || github.event.pull_request.base.repo.full_name == github.event.pull_request.head.repo.full_name }}
8989
run: |
9090
mkdir -p /tmp/digests
9191
digest="${{ steps.build.outputs.digest }}"
9292
touch "/tmp/digests/${digest#sha256:}"
9393
- name: Upload digest
94-
if: ${{ !github.event.pull_request || github.event.pull_request.base.repo == github.event.pull_request.head.repo }}
94+
if: ${{ !github.event.pull_request || github.event.pull_request.base.repo.full_name == github.event.pull_request.head.repo.full_name }}
9595
uses: actions/upload-artifact@v3
9696
with:
9797
name: digests
@@ -100,7 +100,7 @@ jobs:
100100
retention-days: 1
101101
merge:
102102
runs-on: ubuntu-latest
103-
if: ${{ !github.event.pull_request || github.event.pull_request.base.repo == github.event.pull_request.head.repo }}
103+
if: ${{ !github.event.pull_request || github.event.pull_request.base.repo.full_name == github.event.pull_request.head.repo.full_name }}
104104
needs:
105105
- build
106106
permissions:
@@ -135,4 +135,4 @@ jobs:
135135
$(printf '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)
136136
- name: Inspect image
137137
run: |
138-
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}
138+
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}

0 commit comments

Comments
 (0)