All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: https://git.query.consul/unkin/rpmbuild-internal-ca-certificates/pulls/4
40 lines
906 B
YAML
40 lines
906 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_PASSWORD:
|
|
from_secret: gitea_password
|
|
commands:
|
|
- >
|
|
for rpm in /drone/src/rpmbuild/RPMS/*/*.rpm; do
|
|
curl --user droneci:$GITEA_PASSWORD --cacert /etc/ssl/certs/ca-certificates.crt --upload-file $rpm https://git.query.consul/api/packages/unkin/rpm/almalimnux/8/upload
|
|
done
|
|
when:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push
|
|
|
|
secrets:
|
|
- source: gitea_package_token
|
|
target: GITEA_TOKEN
|