Skip to content

Commit

Permalink
Use Docker login step before trying to push sigs
Browse files Browse the repository at this point in the history
  • Loading branch information
samhclark committed Sep 22, 2024
1 parent c49dbb9 commit ffc1d34
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@ jobs:
extra-args: |
--disable-content-trust
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v3
# if: github.event_name != 'pull_request'
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}

- name: Copy Podman login to Docker location for Cosign
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
run: |
cat /run/containers/0/auth.json > ~/.docker/config.json
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# - name: Copy Podman login to Docker location for Cosign
# if: github.event_name != 'pull_request'
# run: |
# cat /run/containers/0/auth.json > ~/.docker/config.json

- name: Sign the published OCI image
if: ${{ github.event_name != 'pull_request' }}
Expand Down

0 comments on commit ffc1d34

Please sign in to comment.