Skip to content

Commit

Permalink
Does it work with just podman-login?
Browse files Browse the repository at this point in the history
  • Loading branch information
samhclark committed Sep 22, 2024
1 parent bf56425 commit 1507b14
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
fail-fast: false

steps:
# Checkout push-to-registry action GitHub repository
- name: Checkout Push to Registry action
- name: Checkout repo
uses: actions/checkout@v4

# https://github.com/marketplace/actions/cosign-installer
Expand All @@ -41,27 +40,34 @@ jobs:
${{ github.sha }}
40
oci: false

- name: Log in to GitHub Container Registry (ghcr.io)
uses: redhat-actions/podman-login@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io/${{ github.repository_owner }}

- name: Push To GHCR
- name: Push To GitHub Container Registry
uses: redhat-actions/push-to-registry@v2
id: push
if: github.event_name != 'pull_request'
with:
image: ${{ steps.build_image.outputs.image }}
tags: ${{ steps.build_image.outputs.tags }}
registry: ghcr.io/${{ github.repository_owner }}
username: ${{ github.actor }}
password: ${{ github.token }}
extra-args: |
--disable-content-trust
# username: ${{ github.actor }}
# password: ${{ github.token }}
# 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: 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
# if: github.event_name != 'pull_request'
Expand Down

0 comments on commit 1507b14

Please sign in to comment.