Merge pull request 'feat: artifact changes' (#10) from neoloc/artifacting into master
Reviewed-on: https://git.query.consul/unkin/rpmbuilder/pulls/10
This commit is contained in:
commit
81bd274ee1
@ -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
|
||||
|
||||
@ -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 }}
|
||||
|
||||
@ -1 +1 @@
|
||||
1
|
||||
2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user