update build

This commit is contained in:
Simon Marsh 2023-05-27 13:27:41 +01:00
parent 33a0f435ad
commit a5b868e442

View File

@ -4,6 +4,7 @@ type: docker
name: default name: default
steps: steps:
- name: build frontend - name: build frontend
image: golang image: golang
environment: environment:
@ -28,32 +29,27 @@ steps:
- mkdir artifacts - mkdir artifacts
- mv frontend/frontend artifacts/ - mv frontend/frontend artifacts/
- mv proxy/proxy artifacts/ - mv proxy/proxy artifacts/
- tar -cvzf bird-lg-go.collector.tar.gz -C artifacts .
- name: upload - name: upload artifacts
image: plugins/s3 image: git.burble.dn42/burble.dn42/drone-gitea-pkg-plugin:latest
settings: settings:
bucket: artifacts token:
access_key: from_secret: TOKEN
from_secret: MINIO_ACCESS_KEY version: RELEASE
secret_key: artifact: bird-lg-go.collector.tar.gz
from_secret: MINIO_SECRET_KEY package: bird-lg-go
endpoint: https://minio.burble.dn42 owner: burble.dn42
region: uk-lon3
path_style: true
source: artifacts/*
strip_prefix: artifacts/
target: /bird-lg-go/${DRONE_BRANCH}
--- ---
kind: secret kind: secret
name: MINIO_ACCESS_KEY name: TOKEN
get: get:
path: burble.dn42/kv/data/drone/minio path: burble.dn42/kv/data/drone/git.burble.dn42
name: ACCESS_KEY name: artifact-token
--- ---
kind: secret kind: signature
name: MINIO_SECRET_KEY hmac: e6337e5d1e79f6877c729ff081a5ea06a1092353f996165aae7ee94051277c8f
get:
path: burble.dn42/kv/data/drone/minio ...
name: SECRET_KEY