feat: add multi-release build jobs
- update build/deploy to be multiple jobs
This commit is contained in:
parent
64b5537171
commit
bab3f1f194
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user