bird-lg-go/.drone.yml
2023-09-25 09:20:05 +01:00

56 lines
984 B
YAML

---
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/
- tar -cvzf bird-lg-go.collector.tar.gz -C artifacts .
- name: upload artifacts
image: git.burble.dn42/burble.dn42/drone-gitea-pkg-plugin:latest
settings:
token:
from_secret: TOKEN
version: RELEASE
artifact: bird-lg-go.collector.tar.gz
package: bird-lg-go
owner: burble.dn42
---
kind: secret
name: TOKEN
get:
path: burble.dn42/kv/data/drone/git.burble.dn42
name: artifact-token
---
kind: signature
hmac: e6337e5d1e79f6877c729ff081a5ea06a1092353f996165aae7ee94051277c8f
...