Skip to content

Commit

Permalink
chore: change workflow userpass
Browse files Browse the repository at this point in the history
  • Loading branch information
Venefilyn committed Oct 11, 2024
1 parent e082fb9 commit d6e641f
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions .github/workflows/build-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ on:
default: ""

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

jobs:
Expand All @@ -27,6 +27,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Display downloaded files
run: ls -la

- name: Get tag
if: ${{ github.event_name != 'release' }}
id: tag
Expand Down Expand Up @@ -56,11 +59,34 @@ jobs:
name: github-repo
path: "."
retention-days: 1
include-hidden-files: true
build_rpm9_test:
name: Build el9 RPM test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Display downloaded files
run: ls -la

- 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 el9
env:
BUILD_IMAGES: false # Building an image is unnecessary
run: |
make rpm9
build_rpms:
needs:
- setup_version
name: Build EL${{ matrix.el.ver }} RPM
name: Build EL9 RPM
strategy:
fail-fast: false
matrix:
Expand All @@ -74,6 +100,9 @@ jobs:
with:
name: github-repo

- name: Display downloaded files
run: ls -la

- name: Login to ghcr.io
uses: redhat-actions/podman-login@v1
with:
Expand Down

0 comments on commit d6e641f

Please sign in to comment.