Skip to content

Commit 7eed053

Browse files
committed
CI: fix external pull requests
Using github.repository does not work for third-party pull requests.
1 parent 87fea43 commit 7eed053

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ on:
1818
types:
1919
- completed
2020

21+
env:
22+
DOCKER_IMAGE: ghcr.io/opendatacube/odc-stats
23+
2124
permissions:
2225
contents: read
2326
packages: read
@@ -67,7 +70,7 @@ jobs:
6770
test-wheels:
6871
runs-on: ubuntu-latest
6972
container:
70-
image: ghcr.io/${{ github.repository }}:latest
73+
image: ${{ env.DOCKER_IMAGE }}:latest
7174
credentials:
7275
username: ${{ github.actor }}
7376
password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/statistician-image.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ on:
2020
types:
2121
- completed
2222

23+
env:
24+
DOCKER_IMAGE: ghcr.io/opendatacube/odc-stats
2325

2426
permissions:
2527
id-token: write # This is required for requesting the JWT
@@ -110,6 +112,6 @@ jobs:
110112
registry: ghcr.io
111113
username: ${{ github.actor }}
112114
password: ${{ secrets.GITHUB_TOKEN }}
113-
image_name: ${{ github.repository }}
115+
image_name: ${{ env.DOCKER_IMAGE }}
114116
image_tag: latest,${{ needs.set_tags.outputs.image_tag }}
115117
build_extra_args: '{"--build-arg": "UPDATE_VERSION=${{ needs.set_tags.outputs.image_tag }}"}'

0 commit comments

Comments
 (0)