From d6e641f53af0d17b9c3964beb91d11a27e2986fd Mon Sep 17 00:00:00 2001 From: Freya Gustavsson Date: Fri, 11 Oct 2024 20:04:38 +0200 Subject: [PATCH] chore: change workflow userpass --- .github/workflows/build-rpm.yml | 35 ++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-rpm.yml b/.github/workflows/build-rpm.yml index bbf618bfc7..4ca9063b49 100644 --- a/.github/workflows/build-rpm.yml +++ b/.github/workflows/build-rpm.yml @@ -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: @@ -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 @@ -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: @@ -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: