mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-24 23:38:55 +00:00
18 lines
324 B
YAML
18 lines
324 B
YAML
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 .
|
|
- ./app
|