Skip to content

Commit

Permalink
makefile tag option
Browse files Browse the repository at this point in the history
  • Loading branch information
Pineapple217 committed May 9, 2024
1 parent 61c511d commit 141438c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
DOCKER_TAG ?= latest

docker-build:
docker build -t pineapple217/mb:latest --build-arg GIT_COMMIT=$(shell git log -1 --format=%h) .
@make --no-print-directory codegen
docker build -t pineapple217/mb:$(DOCKER_TAG) --build-arg GIT_COMMIT=$(shell git log -1 --format=%h) .

docker-push:
docker push pineapple217/mb:latest
docker push pineapple217/mb:$(DOCKER_TAG)

docker-update:
@make --no-print-directory docker-build
Expand Down

0 comments on commit 141438c

Please sign in to comment.