This commit is contained in:
@@ -1,5 +1,25 @@
|
||||
steps:
|
||||
test:
|
||||
image: golang:1.26
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
GOOS: linux
|
||||
commands:
|
||||
- go test ./...
|
||||
volumes:
|
||||
- go_build_cache:/root/.cache/go-build
|
||||
- go_mod_cache:/go/pkg/mod
|
||||
build:
|
||||
image: golang:1.26
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
GOOS: linux
|
||||
commands:
|
||||
- go build .
|
||||
volumes:
|
||||
- go_build_cache:/root/.cache/go-build
|
||||
- go_mod_cache:/go/pkg/mod
|
||||
deploy:
|
||||
image: docker
|
||||
commands:
|
||||
- apk add curl
|
||||
|
||||
Reference in New Issue
Block a user