remove modcache
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Jeffrey Paul 2022-12-08 23:49:42 +04:00
parent ab8c0463bf
commit 8368dbff82
2 changed files with 1 additions and 6 deletions

View File

@ -34,8 +34,6 @@ RUN rm -rf /usr/local/go && \
tar -C /usr/local -xzf go*.linux-$(uname -m).tar.gz && \ tar -C /usr/local -xzf go*.linux-$(uname -m).tar.gz && \
echo 'export PATH=$PATH:/usr/local/go/bin' >> /etc/profile echo 'export PATH=$PATH:/usr/local/go/bin' >> /etc/profile
RUN mkdir -p "$(go env GOMODCACHE)" && cd $(go env GOMODCACHE) && tar xvf /tmp/modcache.tar && rm /tmp/modcache.tar && cd /tmp
RUN \ RUN \
go install -v google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1 && \ go install -v google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1 && \
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1 && \ go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1 && \

View File

@ -15,7 +15,7 @@ default: save
clean: clean:
rm -v $(D)/*.tzst rm -v $(D)/*.tzst
build: deps/modcache.tar build:
docker build \ docker build \
-t $(RN):$(GITREV) \ -t $(RN):$(GITREV) \
-t $(RN):latest \ -t $(RN):latest \
@ -42,6 +42,3 @@ push:
docker push $(RN):$(GITREV) docker push $(RN):$(GITREV)
docker push $(RN):latest docker push $(RN):latest
docker push $(RN):$(shell git branch --show-current) docker push $(RN):$(shell git branch --show-current)
deps/modcache.tar:
cd $(shell go env GOMODCACHE)/ && tar -c . | pv > $(PWD)/deps/modcache.tar