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
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.collector.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: uk-lon3
path_style: true
source: artifacts/*
strip_prefix: artifacts/
target: /bird-lg-go/${DRONE_BRANCH}
token:
from_secret: TOKEN
version: RELEASE
artifact: bird-lg-go.collector.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: e6337e5d1e79f6877c729ff081a5ea06a1092353f996165aae7ee94051277c8f
...