添加 .drone.yml
This commit is contained in:
parent
8c585f30c8
commit
9e0847fcae
17
.drone.yml
Normal file
17
.drone.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
workspace:
|
||||||
|
base: /srv/drone-demo
|
||||||
|
path: .
|
||||||
|
|
||||||
|
pipeline:
|
||||||
|
build:
|
||||||
|
image: golang:alpine
|
||||||
|
# pull: true
|
||||||
|
environment:
|
||||||
|
- KEY=VALUE
|
||||||
|
secrets: [key1, key2]
|
||||||
|
commands:
|
||||||
|
- echo $$KEY
|
||||||
|
- pwd
|
||||||
|
- ls
|
||||||
|
- go build -o app .
|
||||||
|
- ./app
|
Loading…
Reference in New Issue
Block a user