This commit is contained in:
parent
955d85d2ba
commit
3601b99ef1
38
.drone.yml
38
.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
|
||||
|
||||
...
|
||||
|
Loading…
x
Reference in New Issue
Block a user