feat: add multi-release build jobs
All checks were successful
Build / build-9 (pull_request) Successful in 1m5s
Build / build-8 (pull_request) Successful in 1m37s

- update build/deploy to be multiple jobs
This commit is contained in:
Ben Vincent 2024-12-20 23:57:10 +11:00
parent 64b5537171
commit bab3f1f194
2 changed files with 53 additions and 2 deletions

View File

@ -6,7 +6,30 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: build-8:
runs-on: almalinux-8
container:
image: git.query.consul/unkin/almalinux8-runnerdnd:latest
options: --privileged
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build Packages
run: |
make all
- name: Show RPMs
run: |
find /workspace -type f -name "*.rpm"
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: rpms
path: /workspace/unkin/rpmbuilder/dist/*/*.rpm
build-9:
runs-on: almalinux-8 runs-on: almalinux-8
container: container:
image: git.query.consul/unkin/almalinux8-runnerdnd:latest image: git.query.consul/unkin/almalinux8-runnerdnd:latest

View File

@ -7,7 +7,7 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
deploy: deploy-8:
runs-on: almalinux-8 runs-on: almalinux-8
container: container:
image: git.query.consul/unkin/almalinux8-runnerdnd:latest image: git.query.consul/unkin/almalinux8-runnerdnd:latest
@ -35,3 +35,31 @@ jobs:
for rpm in $(find /workspace -type f -name "*.rpm"); do for rpm in $(find /workspace -type f -name "*.rpm"); do
curl --user droneci:${{ secrets.DRONECI_PASSWORD }} --upload-file $rpm https://git.query.consul/api/packages/unkin/rpm/almalinux/el8/upload curl --user droneci:${{ secrets.DRONECI_PASSWORD }} --upload-file $rpm https://git.query.consul/api/packages/unkin/rpm/almalinux/el8/upload
done done
deploy-9:
runs-on: almalinux-8
container:
image: git.query.consul/unkin/almalinux8-runnerdnd:latest
options: --privileged
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Download Artifacts
run: |
mkdir -p /workspace/unkin/rpmbuilder/dist
export PREVIOUS_RUN_ID=$((GITHUB_RUN_NUMBER - 1))
curl -L -o /workspace/rpms.zip "https://git.query.consul/${GITHUB_REPOSITORY}/actions/runs/${PREVIOUS_RUN_ID}/artifacts/rpms"
unzip /workspace/rpms.zip -d /workspace/unkin/rpmbuilder/dist
- name: Show RPMs
run: |
find /workspace -type f -name "*.rpm"
- name: Upload RPMs to Gitea
env:
DRONECI_PASSWORD: ${{ secrets.DRONECI_PASSWORD }}
run: |
for rpm in $(find /workspace -type f -name "*.rpm"); do
curl --user droneci:${{ secrets.DRONECI_PASSWORD }} --upload-file $rpm https://git.query.consul/api/packages/unkin/rpm/almalinux/el9/upload
done