2017-11-30 15:05:57 +08:00
|
|
|
workspace:
|
|
|
|
base: /srv/drone-demo
|
|
|
|
path: .
|
|
|
|
|
|
|
|
pipeline:
|
|
|
|
build:
|
|
|
|
image: golang:alpine
|
|
|
|
# pull: true
|
|
|
|
environment:
|
|
|
|
- KEY=VALUE
|
|
|
|
secrets: [key1, key2]
|
|
|
|
commands:
|
2017-11-30 18:34:14 +08:00
|
|
|
# - echo $$KEY
|
2017-11-30 15:05:57 +08:00
|
|
|
- pwd
|
|
|
|
- ls
|
|
|
|
- CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
2017-11-30 18:34:14 +08:00
|
|
|
- ./app
|