This commit is contained in:
khs1994
2017-11-30 15:05:57 +08:00
parent d8f1e91471
commit 9930d6c2ea
8 changed files with 269 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
workspace:
base: /srv/drone-demo
path: .
pipeline:
build:
image: golang:alpine
# pull: true
environment:
- KEY=VALUE
secrets: [key1, key2]
commands:
- echo $$KEY
- pwd
- ls
- CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .