Skip to content

Commit 3f8607f

Browse files
committed
CI: fix external pull requests
Using github.repository does not work for third-party pull requests.
1 parent e5e406e commit 3f8607f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
test-wheels:
6868
runs-on: ubuntu-latest
6969
container:
70-
image: ghcr.io/${{ github.repository }}:latest
70+
image: ghcr.io/opendatacube/odc-stats:latest
7171
credentials:
7272
username: ${{ github.actor }}
7373
password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/statistician-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Statistician Test and Push
22

33
env:
44
IMAGE_NAME: opendatacube/datacube-statistician
5+
DOCKER_IMAGE: ghcr.io/opendatacube/odc-stats
56

67
on:
78
pull_request:
@@ -20,7 +21,6 @@ on:
2021
types:
2122
- completed
2223

23-
2424
permissions:
2525
id-token: write # This is required for requesting the JWT
2626
contents: read # This is required for actions/checkout
@@ -110,6 +110,6 @@ jobs:
110110
registry: ghcr.io
111111
username: ${{ github.actor }}
112112
password: ${{ secrets.GITHUB_TOKEN }}
113-
image_name: ${{ github.repository }}
113+
image_name: ${{ env.DOCKER_IMAGE }}
114114
image_tag: latest,${{ needs.set_tags.outputs.image_tag }}
115115
build_extra_args: '{"--build-arg": "UPDATE_VERSION=${{ needs.set_tags.outputs.image_tag }}"}'

0 commit comments

Comments
 (0)