Skip to content

Commit a43843e

Browse files
kanasznagyzoltantdonohue
authored andcommitted
QREPO-406 use ghcr.io only on the upstream reposity: dspace/dspace-angular
1 parent dad6b31 commit a43843e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ jobs:
4040
# Project name to use when running "docker compose" prior to e2e tests
4141
COMPOSE_PROJECT_NAME: 'ci'
4242
# Docker Registry to use for Docker compose scripts below.
43-
# We use GitHub's Container Registry to avoid aggressive rate limits at DockerHub.
44-
DOCKER_REGISTRY: ghcr.io
43+
# On the upstream dspace/dspace-angular repository we use GitHub's Container Registry
44+
# (ghcr.io) to avoid aggressive rate limits at DockerHub. Forks cannot authenticate
45+
# against ghcr.io/dspace/* with their own GITHUB_TOKEN (and the images there require
46+
# auth), so on forks we fall back to docker.io where the same images are public.
47+
DOCKER_REGISTRY: ${{ github.repository == 'dspace/dspace-angular' && 'ghcr.io' || 'docker.io' }}
4548
strategy:
4649
# Create a matrix of Node versions to test against (in parallel)
4750
matrix:

0 commit comments

Comments
 (0)