From 3601b99ef129f20d149fb0e869e83f18b9a34e4f Mon Sep 17 00:00:00 2001 From: Simon Marsh Date: Sat, 27 May 2023 13:24:27 +0100 Subject: [PATCH] update build --- .drone.yml | 38 +++++++++++++++++--------------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/.drone.yml b/.drone.yml index f32e8d5..ce37181 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,6 +4,7 @@ type: docker name: default steps: + - name: build frontend image: golang environment: @@ -28,32 +29,27 @@ steps: - mkdir artifacts - mv frontend/frontend artifacts/ - mv proxy/proxy artifacts/ + - tar -cvzf bird-lg-go.bdn42.tar.gz -C artifacts . - - 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: artifacts/* - strip_prefix: artifacts/ - target: /bird-lg-go/${DRONE_BRANCH} + token: + from_secret: TOKEN + version: RELEASE + artifact: bird-lg-go.bdn42.tar.gz + package: bird-lg-go + 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: c784d52aa3d2c36eb2d18d1262c45296aa17332e181a303deb9c36bf52066e58 + +...