mirror of
https://github.com/yeasy/docker_practice.git
synced 2025-10-20 05:51:42 +00:00
Add Drone #261
This commit is contained in:
16
cases/ci/demo/drone/.drone.yml
Normal file
16
cases/ci/demo/drone/.drone.yml
Normal 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 .
|
Reference in New Issue
Block a user