diff --git a/Dockerfile b/Dockerfile index 5bf0721443..7c0e7cdd4f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM likecoin/rbuilder:latest as builder +FROM likecoin/rbuilder:cf0d1a9f3731e30540bbfa36a36d13e4dcccf5eb as builder COPY . /sources ARG VERSION diff --git a/Makefile b/Makefile index 474ae596a7..913a5d8441 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ COMMIT := $(shell git rev-parse HEAD) LEDGER_ENABLED ?= true DOCKER := $(shell which docker) IMAGE_TAG = likecoin/likecoin-chain:$(VERSION) +RBUILDER_IMAGE_TAG = cf0d1a9f3731e30540bbfa36a36d13e4dcccf5eb BUILDDIR ?= $(CURDIR)/build export GO111MODULE = on @@ -95,7 +96,7 @@ build-reproducible: go.sum --env VERSION=$(VERSION) \ --env COMMIT=$(COMMIT) \ --env LEDGER_ENABLED=$(LEDGER_ENABLED) \ - --name latest-build likecoin/rbuilder:latest + --name latest-build likecoin/rbuilder:$(RBUILDER_IMAGE_TAG) $(DOCKER) cp -a latest-build:/home/builder/artifacts/ $(CURDIR)/ build-docker: go.sum