chore: speed up build (#4017)

* better cache dependencies

* ignore local statik.go

* remove previously generated statik.go file

* remove redundant .dockerignore
This commit is contained in:
Elio Bischof
2022-07-25 13:54:05 +02:00
committed by GitHub
parent ccde49b323
commit 6bb3220186
3 changed files with 18 additions and 12 deletions

View File

@@ -9,6 +9,8 @@ release:
before:
hooks:
# this file would invalidate go source caches
- sh -c "rm openapi/statik/statik.go || true"
- docker build -f build/grpc/Dockerfile -t zitadel-base:local .
- docker build -f build/zitadel/Dockerfile . -t zitadel-go-test --target go-codecov -o .artifacts/codecov
- docker build -f build/zitadel/Dockerfile . -t zitadel-go-base --target go-copy -o .artifacts/grpc/go-client