Skip to content

Commit e3530f2

Browse files
committed
revert back to ghcr.io for cache, use read only when forked pr
1 parent 65f1d1c commit e3530f2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/e2e.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,14 @@ jobs:
174174
SYSTEM_TEST_IMAGE=$SYSTEM_TEST_IMAGE \
175175
build
176176
- name: login to ghcr
177+
if: github.event.pull_request.head.repo.full_name == github.repository
177178
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
178179
with:
179180
registry: ghcr.io
180181
username: ${{ github.actor }}
181182
password: ${{ github.token }}
182183
- name: Publish system-test image
184+
if: github.event.pull_request.head.repo.full_name == github.repository
183185
run: |
184186
docker push $SYSTEM_TEST_IMAGE
185187
@@ -202,6 +204,13 @@ jobs:
202204

203205
SYSTEM_TEST_IMAGE: ${{ needs.prepare-config.outputs.system-test-image-cached }}
204206
steps:
207+
- name: login to ghcr
208+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
209+
with:
210+
registry: ghcr.io
211+
username: ${{ github.actor }}
212+
password: ${{ github.token }}
213+
205214
- name: download system-test image
206215
run: |
207216
docker pull $SYSTEM_TEST_IMAGE

0 commit comments

Comments
 (0)