From 89db21a6b7fec910858b57b3ed631add38c56c51 Mon Sep 17 00:00:00 2001 From: Simon Marsh Date: Sat, 27 May 2023 18:38:07 +0100 Subject: [PATCH] update to use gitea packages --- .drone.yml | 38 ++++++++++++++++++-------------------- .version | 1 + 2 files changed, 19 insertions(+), 20 deletions(-) create mode 100644 .version diff --git a/.drone.yml b/.drone.yml index 4ebab83..581c89c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,6 +4,7 @@ type: docker name: default steps: + - name: build image: golang environment: @@ -13,30 +14,27 @@ steps: - go vet - go build - - name: upload - image: plugins/s3 + + - name: upload artifacts + image: git.burble.dn42/burble.dn42/drone-gitea-pkg-plugin:latest settings: - bucket: artifacts - access_key: - from_secret: MINIO_ACCESS_KEY - secret_key: - from_secret: MINIO_SECRET_KEY - endpoint: https://minio.burble.dn42 - region: fr-par1 - path_style: true - source: mini-vault/mini-vault - target: /mini-vault/${DRONE_BRANCH} + token: + from_secret: TOKEN + version: .version + artifact: mini-vault + filename: mini-vault/mini-vault + package: libvault + owner: burble.dn42 --- kind: secret -name: MINIO_ACCESS_KEY +name: TOKEN get: - path: burble.dn42/kv/data/drone/minio - name: ACCESS_KEY + path: burble.dn42/kv/data/drone/git.burble.dn42 + name: artifact-token --- -kind: secret -name: MINIO_SECRET_KEY -get: - path: burble.dn42/kv/data/drone/minio - name: SECRET_KEY +kind: signature +hmac: 7f0c3ef22f9e899ebb27b357bb9396d4b5aac99ba7e5c481705a70f262485c3b + +... diff --git a/.version b/.version new file mode 100644 index 0000000..7dea76e --- /dev/null +++ b/.version @@ -0,0 +1 @@ +1.0.1