rpmbuild-internal-ca-certif.../.drone.yml
Ben Vincent 46ed8e9ff7
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
fix: enable ci secrets
- ensure the gitea token is provided to upload jobs
2024-08-25 23:41:56 +10:00

40 lines
911 B
YAML

kind: pipeline
type: docker
name: almalinux8
trigger:
event:
include:
- push
- pull_request
steps:
- name: build
image: git.query.consul/unkin/almalinux8:latest
commands:
# Install the required packages using custom repositories
- dnf install -y make git rpmdevtools
# Run the `make` command
- make build
- name: upload
image: git.query.consul/unkin/almalinux8:latest
environment:
GITEA_TOKEN:
from_secret: gitea_package_token
commands:
- >
for rpm in /drone/src/rpmbuild/RPMS/*/*.rpm; do
curl --user droneci:${GITEA_TOKEN} --cacert /etc/ssl/certs/ca-certificates.crt --upload-file $rpm https://git.query.consul/api/v1/packages/unkin/rpm/almalinux/el8/upload
done
when:
branch:
- master
event:
- push
secrets:
- source: gitea_package_token
target: GITEA_TOKEN