From 15d72224ff691fea230720dffc282f824e15b20d Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 25 Aug 2024 23:41:56 +1000 Subject: [PATCH] fix: enable ci secrets - ensure the gitea token is provided to upload jobs --- .drone.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1cd29a3..6753b35 100644 --- a/.drone.yml +++ b/.drone.yml @@ -21,15 +21,19 @@ 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 + +secrets: + - source: gitea_password + target: GITEA_PASSWORD