Skip to content

Commit

Permalink
Add el9 release rpm build
Browse files Browse the repository at this point in the history
This workflow improvement build rpm for RHEL 9 and its variants.
  • Loading branch information
thalman committed Aug 19, 2024
1 parent f3b4a68 commit 6f2d2f6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,27 @@ jobs:
tag: ${{ github.ref }}
overwrite: true
file_glob: true

build-el-rpm:
runs-on: ubuntu-latest
container: rockylinux:9
needs: create-archive
steps:
- name: Download tar
uses: actions/download-artifact@v4
with:
name: tar
- name: Build rpm
run: |
set -x
dnf -y install rpm-build python3-devel python3-setuptools
rpmbuild -D "_rpmdir $(pwd)/rpmbuild" -ta keycloak-httpd-client-install-*.tar.gz
find ./rpmbuild -name '*.rpm' -exec mv {} ./ \;
- name: Upload rpms release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "./*.rpm"
tag: ${{ github.ref }}
overwrite: true
file_glob: true

0 comments on commit 6f2d2f6

Please sign in to comment.