Skip to content

Commit

Permalink
Makefile target to build container image.
Browse files Browse the repository at this point in the history
Adds two Makefile target to help developers to build their development
container images.
  • Loading branch information
jvanz committed Jan 24, 2022
1 parent 4de21a5 commit d5cef72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
HYPERFINE := $(shell command -v hyperfine 2> /dev/null)
IMG ?= policy-server:latest

.PHONY: build
build:
Expand Down Expand Up @@ -26,3 +27,7 @@ tag:
@git-chglog --output CHANGELOG.md
@git commit -m 'Update CHANGELOG.md' -- CHANGELOG.md
@git tag -f "${TAG}"

.PHONY: docker-build
docker-build: test ## Build docker image with the manager.
docker build -t ${IMG} .

0 comments on commit d5cef72

Please sign in to comment.