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

This commit is contained in:
2026-02-14 16:08:29 -05:00
parent 8343e71fb1
commit cfc62e4d01
4 changed files with 39 additions and 142 deletions

View File

@@ -1,9 +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 -v .
volumes:
- go_build_cache:/root/.cache/go-build
- go_mod_cache:/go/pkg/mod
container:
image: docker
commands:
- docker login -u docker -p $DOCKER_PASSWORD registry.yetaga.in
@@ -31,4 +47,4 @@ steps:
COMPOSE_TOKEN:
from_secret: compose_token
when:
branch: "main"
branch: "main"