Update 3 files

- /main.go
- /.drone.yml
- /go.mod
This commit is contained in:
2025-06-23 09:03:08 +00:00
commit 2eab0809de
3 changed files with 27 additions and 0 deletions

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

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module drone-demo
go 1.17

7
main.go Normal file
View File

@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Printf("Hello World!");
}