Skip to content

Commit adfc8d1

Browse files
committed
workflow disk optimization
1 parent 05261d3 commit adfc8d1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,20 +197,16 @@ PACKAGE_NAME:=github.com/realiotech/realio-network
197197
GOLANG_CROSS_VERSION = v1.22
198198
GOPATH ?= '$(HOME)/go'
199199
release-dry-run:
200-
@mkdir -p /tmp/go-cache
201200
docker run \
202201
--rm \
203202
--privileged \
204203
-e CGO_ENABLED=1 \
205-
-e GOCACHE=/tmp/go-cache \
206-
-e GOMODCACHE=/tmp/go-cache/mod \
207204
-v /var/run/docker.sock:/var/run/docker.sock \
208205
-v `pwd`:/go/src/$(PACKAGE_NAME) \
209-
-v /tmp/go-cache:/tmp/go-cache \
206+
-v ${GOPATH}/pkg:/go/pkg \
210207
-w /go/src/$(PACKAGE_NAME) \
211208
ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
212209
--clean --skip=validate --skip=publish --snapshot
213-
@rm -rf /tmp/go-cache
214210

215211
release:
216212
@if [ ! -f ".release-env" ]; then \

0 commit comments

Comments
 (0)