diff --git a/Makefile b/Makefile index 9e24b205..0760fb6e 100644 --- a/Makefile +++ b/Makefile @@ -51,8 +51,13 @@ docker-run-release: export pkg=/go/src/github.com/databus23/helm-diff docker-run-release: git checkout master git push + # needed to avoid "failed to initialize build cache at /.cache/go-build: mkdir /.cache: permission denied" + mkdir -p docker-run-release-cache # uid needs to be set to avoid "error obtaining VCS status: exit status 128" - docker run --user $(shell id -u) -it --rm -e GITHUB_TOKEN -v $(shell pwd):$(pkg) -w $(pkg) golang:1.19.8 make bootstrap release + docker run --user $(shell id -u) -it --rm -e GITHUB_TOKEN \ + -v $(shell pwd):$(pkg) \ + -v $(shell pwd)/docker-run-release-cache:/.cache \ + -w $(pkg) golang:1.19.8 make bootstrap release .PHONY: dist dist: export COPYFILE_DISABLE=1 #teach OSX tar to not put ._* files in tar archive