Skip to content

Commit

Permalink
chore: Fix workflow ghcr.io authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
Venefilyn committed Oct 11, 2024
1 parent 5716e19 commit e082fb9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
required: false
default: ""

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

jobs:
setup_version:
name: "Setup Convert2RHEL version"
Expand Down Expand Up @@ -69,6 +74,13 @@ jobs:
with:
name: github-repo

- name: Login to ghcr.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.IMAGE_REGISTRY }}

- name: Build RPM package for EL${{ matrix.el.ver }}
env:
BUILD_IMAGES: false # Building an image is unnecessary
Expand Down

0 comments on commit e082fb9

Please sign in to comment.