Skip to content

Commit 7507f98

Browse files
committed
fix: use fallback registry tags on forks
1 parent 40b0ec0 commit 7507f98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020

2121
env:
2222
PUSH_IMAGE: ${{ github.repository == 'EOPF-Explorer/data-pipeline' && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) }}
23+
IMAGE_REGISTRY: ${{ secrets.OVH_HARBOR_REGISTRY || format('ghcr.io/{0}', github.repository_owner) }}
2324

2425
steps:
2526
- name: Checkout code
@@ -29,7 +30,7 @@ jobs:
2930
id: meta
3031
uses: docker/metadata-action@v5
3132
with:
32-
images: ${{ secrets.OVH_HARBOR_REGISTRY }}/eopf-sentinel-zarr-explorer/data-pipeline
33+
images: ${{ env.IMAGE_REGISTRY }}/eopf-sentinel-zarr-explorer/data-pipeline
3334
tags: |
3435
type=sha
3536
type=ref,event=branch

0 commit comments

Comments
 (0)