A REST API for the DN42 registry, written in Go, to provide a bridge between interactive applications and the registry. https://explorer.burble.com
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.
 
 
 
 
 

78 lines
1.4 KiB

---
kind: pipeline
type: docker
name: default
steps:
- name: binary build
image: golang
environment:
CGO_ENABLED: 0
commands:
- go vet
- go build
- name: static build
image: alpine
commands:
- tar cvzf staticroot.tar.gz -C StaticRoot .
- name: upload bin
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: fr-par1
path_style: true
source: dn42regsrv
target: /dn42regsrv/${DRONE_BRANCH}
- name: upload site
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: fr-par1
path_style: true
source: staticroot.tar.gz
target: /dn42regsrv/${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
steps:
- name: build
environment:
CGO_ENABLED: 0
commands:
- go build
- name: stage
commands:
- stage_artifact.sh dn42regsrv dn42regsrv StaticRoot
- name: promote
commands:
- promote_artifact.sh dn42regsrv
when:
branch: master