nimbus-eth2/docker/Makefile

24 lines
521 B
Makefile
Raw Normal View History

2019-09-10 16:18:39 +00:00
# These default settings can be overriden by exporting env variables
GIT_REVISION ?= $(shell git rev-parse HEAD)
2019-09-10 16:18:39 +00:00
NETWORK ?= testnet1
NETWORK_TYPE ?= libp2p
IMAGE_TAG ?= $(NETWORK)
IMAGE_NAME ?= statusteam/nimbus_beacon_node:$(IMAGE_TAG)
build:
2019-09-10 16:18:39 +00:00
docker build \
--build-arg="GIT_REVISION=$(GIT_REVISION)" \
--build-arg="NETWORK=$(NETWORK)" \
--build-arg="NETWORK_TYPE=$(NETWORK_TYPE)" \
-t $(IMAGE_NAME) .
push: build
docker push $(IMAGE_NAME)
push-last:
docker push $(IMAGE_NAME)