Some checks failed
Build / build (pull_request) Failing after 43s
- upload/download artifacts instead of building build and deploy jobs - updated uv package with version in url - add ruff/0.8.1 package
40 lines
988 B
YAML
40 lines
988 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: almalinux-8
|
|
container:
|
|
image: git.query.consul/unkin/almalinux8-runnerdnd:latest
|
|
options: --privileged
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Create dist directory
|
|
run: |
|
|
mkdir -p /workspace/unkin/rpmbuilder/dist
|
|
|
|
- name: Download Artifacts
|
|
uses: actions/download-artifact@v1
|
|
with:
|
|
name: rpms
|
|
path: /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/el8/upload
|
|
done
|