From e1e6d5c513e4a5df21d7c714bd070a71b59fd2cc Mon Sep 17 00:00:00 2001 From: Simon Marsh Date: Sat, 27 May 2023 12:50:01 +0100 Subject: [PATCH] add drone --- .drone.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index af600a0..3e8c86e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,12 +17,14 @@ steps: - grep 'const version string' main.go | tr -d ' "' | cut -d'=' -f2 > .version - name: upload artifact - image: curlimages/curl:latest - environment: - TOKEN: + image: git.burble.dn42/burble.dn42/drone-gitea-pkg-plugin:latest + settings: + token: from_secret: TOKEN - commands: - - sh -c 'VERSION=$(cat .version); curl --user "burble:${TOKEN}" --upload-file="bird_exporter" "https://git.burble.dn42/api/packages/burble/generic/bird_exporter/${VERSION}/bird_exporter"' + version: .version + artifact: bird_exporter + package: bird_exporter + owner: mirrors --- kind: secret @@ -31,3 +33,8 @@ get: path: burble.dn42/kv/data/drone/git.burble.dn42 name: artifact-token +--- +kind: signature +hmac: 757775a4643eedc3d70d60cc6eb009b5704f417245e1f0e66bdfc4e52505bd1a + +...