|
41 | 41 | registry: ${{ env.REGISTRY }} |
42 | 42 | username: ${{ github.actor }} |
43 | 43 | password: ${{ secrets.GITHUB_TOKEN }} |
| 44 | + logout: false |
44 | 45 |
|
45 | 46 | # Log in to Azure CR with token that can pull the base image (ARACHNE_DOCKER_REGISTRY_TOKEN). |
46 | 47 | - name: Log in to Azure CR (pull base image) |
|
49 | 50 | registry: executionengine.azurecr.io |
50 | 51 | username: github-actions-push |
51 | 52 | password: ${{ secrets.ARACHNE_DOCKER_REGISTRY_TOKEN }} |
| 53 | + logout: false |
52 | 54 |
|
53 | 55 | # Try to pull base image; only build if pull fails (e.g. first run or base not yet published). |
54 | 56 | - name: Try pull base image |
|
82 | 84 | registry: executionengine.azurecr.io |
83 | 85 | username: github-actions-push |
84 | 86 | password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }} |
| 87 | + logout: false |
85 | 88 |
|
86 | 89 | # When we built the base locally, push it so future runs can pull it. |
87 | 90 | - name: Push base image to Azure CR |
@@ -198,12 +201,3 @@ jobs: |
198 | 201 | # This signs the attached attestations (provenance/SBOM) for that digest. |
199 | 202 | cosign sign-attestation --yes "${IMAGE}@${DIGEST}" |
200 | 203 |
|
201 | | - # Log out from Azure CR (login-action requires password even for logout) |
202 | | - - name: Log out from Azure Container Registry |
203 | | - if: always() |
204 | | - uses: docker/login-action@v3 |
205 | | - with: |
206 | | - registry: executionengine.azurecr.io |
207 | | - username: github-actions-push |
208 | | - password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }} |
209 | | - logout: true |
0 commit comments