From 28b725adcf430d972989acffb14f7c822f478398 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 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1cd29a3..24d6671 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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