From 1f4fa1a5ced847e81bc32ba517b0e3d159237827 Mon Sep 17 00:00:00 2001 From: Kemal Akkoyun Date: Fri, 8 Jul 2022 11:43:38 +0200 Subject: [PATCH] Fix cosign login Signed-off-by: Kemal Akkoyun --- .github/workflows/container.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 42152444b..d4f7be123 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -181,16 +181,16 @@ jobs: - name: Check images are created run: podman images | grep 'ghcr.io/parca-dev/parca-agent' + - name: Install cosign + if: ${{ github.event_name != 'pull_request' }} + uses: sigstore/cosign-installer@48866aa521d8bf870604709cd43ec2f602d03ff2 # tag=v2.4.1 + - name: Login to registry if: ${{ github.event_name != 'pull_request' }} run: | echo "${{ secrets.GITHUB_TOKEN }}" | podman login -u parca-dev --password-stdin ghcr.io echo "${{ secrets.QUAY_PASSWORD }}" | cosign login -u "${{ secrets.QUAY_USERNAME }}" --password-stdin quay.io - - name: Install cosign - if: ${{ github.event_name != 'pull_request' }} - uses: sigstore/cosign-installer@48866aa521d8bf870604709cd43ec2f602d03ff2 # tag=v2.4.1 - - name: Install crane if: ${{ github.event_name != 'pull_request' }} uses: imjasonh/setup-crane@5146f708a817ea23476677995bf2133943b9be0b # tag=v0.1