Skip to content

Commit 39bbd5f

Browse files
committed
actions
1 parent 29da5c3 commit 39bbd5f

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/build-test-sign-image.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
registry: ${{ env.REGISTRY }}
4242
username: ${{ github.actor }}
4343
password: ${{ secrets.GITHUB_TOKEN }}
44+
logout: false
4445

4546
# Log in to Azure CR with token that can pull the base image (ARACHNE_DOCKER_REGISTRY_TOKEN).
4647
- name: Log in to Azure CR (pull base image)
@@ -49,6 +50,7 @@ jobs:
4950
registry: executionengine.azurecr.io
5051
username: github-actions-push
5152
password: ${{ secrets.ARACHNE_DOCKER_REGISTRY_TOKEN }}
53+
logout: false
5254

5355
# Try to pull base image; only build if pull fails (e.g. first run or base not yet published).
5456
- name: Try pull base image
@@ -82,6 +84,7 @@ jobs:
8284
registry: executionengine.azurecr.io
8385
username: github-actions-push
8486
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
87+
logout: false
8588

8689
# When we built the base locally, push it so future runs can pull it.
8790
- name: Push base image to Azure CR
@@ -198,12 +201,3 @@ jobs:
198201
# This signs the attached attestations (provenance/SBOM) for that digest.
199202
cosign sign-attestation --yes "${IMAGE}@${DIGEST}"
200203
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

Comments
 (0)