File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11id-token: write
2+ password: \${{secrets\.GITHUB_TOKEN}}
3+ \.gitallowed
Original file line number Diff line number Diff line change @@ -151,9 +151,16 @@ jobs:
151151 uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
152152 with :
153153 name : eps-devcontainer-base-${{ inputs.docker_tag }}-arm64.img
154+ - name : Login to github container registry
155+ uses : docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9
156+ with :
157+ registry : ghcr.io
158+ username : ${{github.actor}}
159+ password : ${{secrets.GITHUB_TOKEN}}
160+
161+
154162 - name : Load and push multi-arch image
155163 run : >
156- echo "${GITHUB_TOKEN}" | docker login ghcr.io -u "${GITHUB_ACTOR}" --password-stdin
157164 echo "loading images"
158165 docker load -i "eps-devcontainer-base-${DOCKER_TAG}-amd64.img"
159166 docker load -i "eps-devcontainer-base-${DOCKER_TAG}-arm64.img"
@@ -180,6 +187,4 @@ jobs:
180187 docker manifest push "ghcr.io/nhsdigital/eps-devcontainers:${DOCKER_TAG}"
181188 docker manifest push "ghcr.io/nhsdigital/eps-devcontainers:latest"
182189 env :
183- DOCKER_TAG : ' ${{ inputs.docker_tag }}'
184- GITHUB_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
185- GITHUB_ACTOR : ' ${{ github.actor }}'
190+ DOCKER_TAG : ${{ inputs.docker_tag }}
You can’t perform that action at this time.
0 commit comments