You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

59 lines
1.0 KiB

---
kind: pipeline
type: docker
name: default
steps:
- name: build frontend
image: golang
environment:
CGO_ENABLED: 0
commands:
- cd frontend
- go vet
- go build
- name: build proxy
image: golang
environment:
CGO_ENABLED: 0
commands:
- cd proxy
- go vet
- go build
- name: stage
image: alpine
commands:
- mkdir artifacts
- mv frontend/frontend artifacts/
- mv proxy/proxy artifacts/
- name: upload
image: plugins/s3
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}
---
kind: secret
name: MINIO_ACCESS_KEY
get:
path: burble.dn42/kv/data/drone/minio
name: ACCESS_KEY
---
kind: secret
name: MINIO_SECRET_KEY
get:
path: burble.dn42/kv/data/drone/minio
name: SECRET_KEY