add build caching
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-02-14 21:03:45 -05:00
parent 2a4d7d5205
commit ab0cb58a98
3 changed files with 22 additions and 6 deletions

View File

@@ -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