From 6cf67b4f59ee0cf61cab9e04857b89fd4f9e0090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jann=20M=C3=BCller?= Date: Wed, 8 Jan 2025 10:27:42 +0100 Subject: [PATCH] Login to ghcr.io using podman --- .github/workflows/ci-oci.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci-oci.yaml b/.github/workflows/ci-oci.yaml index f8805bb..dbc3897 100644 --- a/.github/workflows/ci-oci.yaml +++ b/.github/workflows/ci-oci.yaml @@ -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 @@ -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