From 29129c30f4812491cc63c2cd597ad4027f490437 Mon Sep 17 00:00:00 2001 From: Glenn Date: Tue, 21 Mar 2023 18:21:28 +0100 Subject: [PATCH] ci: Update publish step --- .drone.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index e158d4d..9f7a325 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,15 +19,18 @@ steps: - name: Publish image: curlimages/curl + environment: + PACKAGE_TOKEN: + from_secret: PACKAGE_TOKEN volumes: - name: cache path: /_cache commands: - env |grep DRONE - | - curl --user your_username:your_password_or_token \ + curl -H "Authorization: token $PACKAGE_TOKEN" \ --upload-file /_cache/bin/docmachine \ - https://code.apps.glenux.net/api/packages/glenux/generic/docmachine-utils/1.0.0/docmachine + https://code.apps.glenux.net/api/packages/glenux/generic/docmachine-utils/$DRONE_TAG/docmachine # FIXME: handle multi-arch # FIXME: publish only on tags