添加 .drone.yml

This commit is contained in:
zjgcjy 2024-09-20 00:55:28 +08:00
parent 8c585f30c8
commit 9e0847fcae

17
.drone.yml Normal file
View 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