Skip to content

Commit

Permalink
make docker: pass in VCS_REF and BUILD_DATE, too
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky authored Oct 1, 2024
1 parent ea98c5e commit 894fa62
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
PROJECT_NAME := ocrd_fileformat
TOOLS = ocrd-fileformat-transform
DOCKER_TAG = ocrd/fileformat
DOCKER_BASE_IMAGE ?= docker.io/ocrd/core:v2.69.0
DOCKER_TAG ?= ocrd/fileformat

PIP ?= pip3

Expand Down Expand Up @@ -67,7 +68,11 @@ uninstall:

# Build Docker image
docker:
docker build -t '$(DOCKER_TAG)' .
docker build \
--build-arg DOCKER_BASE_IMAGE=$(DOCKER_BASE_IMAGE) \
--build-arg VCS_REF=$$(git rev-parse --short HEAD) \
--build-arg BUILD_DATE=$$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
-t $(DOCKER_TAG) .

#
# Assets
Expand Down

0 comments on commit 894fa62

Please sign in to comment.