We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 746f21a commit dad6b31Copy full SHA for dad6b31
1 file changed
.github/workflows/build.yml
@@ -122,8 +122,12 @@ jobs:
122
retention-days: 14
123
124
# Login to our Docker registry, so that we can access private Docker images using "docker compose" below.
125
+ # Only attempt the login on the upstream repository: forks cannot authenticate against
126
+ # ghcr.io/dspace/* with their own GITHUB_TOKEN. The DSpace test images are public on GHCR,
127
+ # so anonymous pulls in the subsequent "docker compose" steps work fine on forks.
128
- name: Login to ${{ env.DOCKER_REGISTRY }}
129
uses: docker/login-action@v4
130
+ if: github.repository == 'dspace/dspace-angular'
131
with:
132
registry: ${{ env.DOCKER_REGISTRY }}
133
username: ${{ github.repository_owner }}
0 commit comments