2019-09-10 16:18:39 +00:00
|
|
|
# These default settings can be overriden by exporting env variables
|
|
|
|
|
2019-11-13 01:27:46 +00:00
|
|
|
GIT_REVISION ?= $(shell git rev-parse HEAD)
|
|
|
|
NETWORK ?= testnet1
|
|
|
|
NETWORK_NIM_FLAGS ?= $(shell ../scripts/load-testnet-nim-flags.sh $(NETWORK))
|
2019-09-10 16:18:39 +00:00
|
|
|
|
|
|
|
IMAGE_TAG ?= $(NETWORK)
|
|
|
|
IMAGE_NAME ?= statusteam/nimbus_beacon_node:$(IMAGE_TAG)
|
|
|
|
|
2019-10-29 00:54:40 +00:00
|
|
|
build:
|
2019-09-10 16:18:39 +00:00
|
|
|
docker build \
|
|
|
|
--build-arg="GIT_REVISION=$(GIT_REVISION)" \
|
|
|
|
--build-arg="NETWORK=$(NETWORK)" \
|
2019-11-13 01:27:46 +00:00
|
|
|
--build-arg="NETWORK_NIM_FLAGS=$(NETWORK_NIM_FLAGS)" \
|
2019-09-10 16:18:39 +00:00
|
|
|
-t $(IMAGE_NAME) .
|
|
|
|
|
|
|
|
push: build
|
|
|
|
docker push $(IMAGE_NAME)
|
|
|
|
|
2019-11-07 01:32:10 +00:00
|
|
|
push-last:
|
|
|
|
docker push $(IMAGE_NAME)
|
|
|
|
|