Skip to content

Commit

Permalink
Login to ghcr.io using podman
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mueller committed Jan 8, 2025
1 parent f0286ca commit 6cf67b4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci-oci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ on:
branches:
- main

permissions:
packages: write

env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}

concurrency:
group: "ci-oci-${{ github.ref }}"
cancel-in-progress: true
Expand All @@ -17,6 +25,12 @@ jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Log in to ghcr.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.IMAGE_REGISTRY }}

- uses: actions/checkout@v4

Expand Down

0 comments on commit 6cf67b4

Please sign in to comment.