File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ name: Build
77on : [push, pull_request]
88
99permissions :
10- contents : read # to fetch code (actions/checkout)
10+ contents : read # to fetch code (actions/checkout)
11+ packages : read # to fetch private images from GitHub Container Registry (GHCR)
1112
1213jobs :
1314 tests :
@@ -117,6 +118,14 @@ jobs:
117118 path : ' coverage/dspace-angular/lcov.info'
118119 retention-days : 14
119120
121+ # Login to our Docker registry, so that we can access private Docker images using "docker compose" below.
122+ - name : Login to ${{ env.DOCKER_REGISTRY }}
123+ uses : docker/login-action@v3
124+ with :
125+ registry : ${{ env.DOCKER_REGISTRY }}
126+ username : ${{ github.repository_owner }}
127+ password : ${{ secrets.GITHUB_TOKEN }}
128+
120129 # Using "docker compose" start backend using CI configuration
121130 # and load assetstore from a cached copy
122131 - name : Start DSpace REST Backend via Docker (for e2e tests)
Original file line number Diff line number Diff line change 1616 pull_request :
1717
1818permissions :
19- contents : read # to fetch code (actions/checkout)
19+ contents : read # to fetch code (actions/checkout)
2020 packages : write # to write images to GitHub Container Registry (GHCR)
2121
2222jobs :
You can’t perform that action at this time.
0 commit comments