fix: enable ci secrets
All checks were successful
continuous-integration/drone/push Build is passing

- ensure the gitea token is provided to upload jobs
This commit is contained in:
Ben Vincent 2024-08-25 23:41:56 +10:00
parent 38e3dabc01
commit 28b725adcf

View File

@ -21,15 +21,15 @@ steps:
- name: upload
image: git.query.consul/unkin/almalinux8:latest
environment:
GITEA_TOKEN:
from_secret: gitea_package_token
GITEA_PASSWORD:
from_secret: gitea_password
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
curl --user droneci:$GITEA_PASSWORD --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
# when:
# branch:
# - master
# event:
# - push