File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,16 @@ jobs:
28
28
run : |
29
29
docker build -f .github/docker/${{ matrix.os }}.Dockerfile -t ${{ env.IMG }} .
30
30
31
+ # Login and push require login/pass to GHCR - omit these steps on forks
31
32
- name : Login to GitHub Container Registry
32
- if : github.event_name != 'pull_request'
33
- uses : docker/login-action@6d4b68b490aef8836e8fb5e50ee7b3bdfa5894f0 # v3.2 .0
33
+ if : ${{ github.event_name != 'pull_request' && github.repository == 'oneapi-src/unified-memory-framework' }}
34
+ uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4 .0
34
35
with :
35
36
registry : ghcr.io
36
37
username : bb-ur
37
38
password : ${{ secrets.BB_GHCR_TOKEN }}
38
39
39
40
- name : Push ${{ matrix.os }} Docker image
40
- if : github.event_name != 'pull_request'
41
+ if : ${{ github.event_name != 'pull_request' && github.repository == 'oneapi-src/unified-memory-framework' }}
41
42
run : |
42
43
docker push ${{ env.IMG }}
You can’t perform that action at this time.
0 commit comments