Merge pull request 'feat: artifact changes' (#10) from neoloc/artifacting into master
Some checks failed
Deploy / build (push) Failing after 0s
Deploy / deploy (push) Failing after 1m44s

Reviewed-on: https://git.query.consul/unkin/rpmbuilder/pulls/10
This commit is contained in:
Ben Vincent 2024-12-01 21:21:31 +11:00
commit 81bd274ee1
3 changed files with 30 additions and 1 deletions

View File

@ -2,6 +2,8 @@ name: Build
on:
pull_request:
workflow_call:
workflow_dispatch:
jobs:
build:
@ -21,3 +23,9 @@ jobs:
- 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

View File

@ -4,9 +4,13 @@ on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
uses: ./.gitea/workflows/build.yml
deploy:
runs-on: almalinux-8
container:
image: git.query.consul/unkin/almalinux8-runnerdnd:latest
@ -20,6 +24,23 @@ jobs:
run: |
make all
- name: Create dist directory
run: |
mkdir -p /tmp/unkin/rpmbuilder/dist
- uses: actions/download-artifact@v3
with:
name: rpms
path: /tmp/unkin/rpmbuilder/dist/
- name: Show RPMs from Artifacts
run: |
find /tmp -type f -name "*.rpm"
- name: Show RPMs from Build
run: |
find /workspace -type f -name "*.rpm"
- name: Upload RPMs to Gitea
env:
DRONECI_PASSWORD: ${{ secrets.DRONECI_PASSWORD }}

View File

@ -1 +1 @@
1
2