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:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
workflow_call:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -21,3 +23,9 @@ jobs:
|
|||||||
- name: Show RPMs
|
- name: Show RPMs
|
||||||
run: |
|
run: |
|
||||||
find /workspace -type f -name "*.rpm"
|
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:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
uses: ./.gitea/workflows/build.yml
|
||||||
|
|
||||||
|
deploy:
|
||||||
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
|
||||||
@ -20,6 +24,23 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make all
|
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
|
- name: Upload RPMs to Gitea
|
||||||
env:
|
env:
|
||||||
DRONECI_PASSWORD: ${{ secrets.DRONECI_PASSWORD }}
|
DRONECI_PASSWORD: ${{ secrets.DRONECI_PASSWORD }}
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
1
|
2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user