Skip to content

Commit 3a4a335

Browse files
authored
Merge pull request #1357 from lukaszstolarczuk/fix-docker-fork
[CI] Update docker login steps
2 parents d08d0de + c635580 commit 3a4a335

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/reusable_dockers_build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@ jobs:
2828
run: |
2929
docker build -f .github/docker/${{ matrix.os }}.Dockerfile -t ${{ env.IMG }} .
3030
31+
# Login and push require login/pass to GHCR - omit these steps on forks
3132
- 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
3435
with:
3536
registry: ghcr.io
3637
username: bb-ur
3738
password: ${{ secrets.BB_GHCR_TOKEN }}
3839

3940
- 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' }}
4142
run: |
4243
docker push ${{ env.IMG }}

0 commit comments

Comments
 (0)