remove modcache
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
ab8c0463bf
commit
8368dbff82
|
@ -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 && \
|
||||||
|
|
5
Makefile
5
Makefile
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue