- changed all releases from 1-el8 and 1-el9 to 1 - updated build job to write files to per-repository directories
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
name: Build
|
|
|
|
on:
|
|
pull_request:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-8:
|
|
runs-on: almalinux-8
|
|
container:
|
|
image: git.unkin.net/unkin/almalinux8-actionsdind:latest
|
|
options: "--privileged --volume /etc/pki/tls/vault:/etc/pki/tls/vault:ro"
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Build Packages
|
|
env:
|
|
VAULT_ROLE_ID: ${{ secrets.RPMBUILDER_VAULT_ROLEID }}
|
|
run: |
|
|
./tools/build build-all --distro almalinux/el8
|
|
|
|
- name: Show RPMs
|
|
run: |
|
|
find /workspace -type f -name "*.rpm"
|
|
|
|
- name: Upload Artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: rpms-8
|
|
path: /workspace/unkin/rpmbuilder/dist/*/*/*.rpm
|
|
|
|
build-9:
|
|
runs-on: almalinux-8
|
|
container:
|
|
image: git.unkin.net/unkin/almalinux9-actionsdind:latest
|
|
options: "--privileged --volume /etc/pki/tls/vault:/etc/pki/tls/vault:ro"
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Build Packages
|
|
env:
|
|
VAULT_ROLE_ID: ${{ secrets.RPMBUILDER_VAULT_ROLEID }}
|
|
run: |
|
|
./tools/build build-all --distro almalinux/el9
|
|
|
|
- name: Show RPMs
|
|
run: |
|
|
find /workspace -type f -name "*.rpm"
|
|
|
|
- name: Upload Artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: rpms-9
|
|
path: /workspace/unkin/rpmbuilder/dist/*/*/*.rpm
|