38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
when:
|
|
- event: push
|
|
branch: master
|
|
|
|
steps:
|
|
- name: build-rpms
|
|
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
|
|
commands:
|
|
- mkdir -p /woodpecker/rpms
|
|
- ln -s /woodpecker/rpms /workspace
|
|
- dnf install buildah -y
|
|
- ./tools/build build-all --distro almalinux/el8 --buildah
|
|
privileged: true
|
|
backend_options:
|
|
kubernetes:
|
|
serviceAccountName: default
|
|
|
|
- name: show-rpms
|
|
image: git.unkin.net/unkin/almalinux9-base:latest
|
|
commands:
|
|
- find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm"
|
|
depends_on: [build-rpms]
|
|
|
|
- name: deploy-rpms
|
|
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
|
|
commands:
|
|
- |
|
|
for rpm in $(find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm"); do
|
|
curl --user droneci:$${DRONECI_PASSWORD} --upload-file $rpm https://git.unkin.net/api/packages/unkin/rpm/almalinux/el8/upload
|
|
done
|
|
environment:
|
|
DRONECI_PASSWORD:
|
|
from_secret: DRONECI_PASSWORD
|
|
backend_options:
|
|
kubernetes:
|
|
serviceAccountName: default
|
|
depends_on: [build-rpms, show-rpms]
|