Skip to content

Commit

Permalink
chore: add push-docker target
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-armstrong committed Oct 27, 2023
1 parent f3ea9be commit 69f92f1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ cmd/__debug_bin

.venv

*metrics.txt
*metrics.txt
*.log
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ PYTHON = $(or $(wildcard $(VENV_PYTHON)), "install_first_venv")
GENERATE_SCHEMA_DOC = $(VENV)/bin/generate-schema-doc
GENERATE_DOC_PATH = "docs/config-file/"
GENERATE_DOC_TEMPLATES_PATH = "docs/config-file/templates/"

DATE=$(shell date +%Y%m%d-%H%M%S)
COMMITID=$(shell git log -1 --format='%h')
BRANCH=$(shell git branch --show-current)
GIT_TAG=$(shell git describe --tags --abbrev=0)
IMAGE_REPO=ghcr.io/b2network/b2-zkevm-node
IMAGE_TAG=${IMAGE_REPO}:${BRANCH}-${GIT_TAG}-${DATE}-${COMMITID}
# Check dependencies
# Check for Go
.PHONY: check-go
Expand Down Expand Up @@ -80,7 +85,9 @@ build: ## Builds the binary locally into ./dist

.PHONY: build-docker
build-docker: ## Builds a docker image with the node binary
docker build -t ghcr.io/b2network/b2-zkevm-node -f ./Dockerfile .
docker build -t ${IMAGE_TAG} -f ./Dockerfile .
push-docker: ## Builds a docker image with the node binary
docker push --all-tags ${IMAGE_REPO}

.PHONY: build-docker-nc
build-docker-nc: ## Builds a docker image with the node binary - but without build cache
Expand Down

0 comments on commit 69f92f1

Please sign in to comment.