summaryrefslogtreecommitdiffhomepage
path: root/pkg/docker/Makefile
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2023-04-10 15:36:48 -0700
committerKonstantin Pavlov <thresh@nginx.com>2023-04-10 15:36:48 -0700
commit8392f8c90220fdacef70ed38bdf29e4a89ed6601 (patch)
treecd146cff0647df9eac2ca6930483cfab0edd7732 /pkg/docker/Makefile
parent31424f409e00361ce48905334fa7c32333371c3c (diff)
downloadunit-8392f8c90220fdacef70ed38bdf29e4a89ed6601.tar.gz
unit-8392f8c90220fdacef70ed38bdf29e4a89ed6601.tar.bz2
Docker: check out packaging tags.
This will ensure we're checking out source code that is close to what we have in binary packages. While at it, remove the checkout directory when it's no longer needed.
Diffstat (limited to 'pkg/docker/Makefile')
-rw-r--r--pkg/docker/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/docker/Makefile b/pkg/docker/Makefile
index 46b75f27..b0a6857c 100644
--- a/pkg/docker/Makefile
+++ b/pkg/docker/Makefile
@@ -6,6 +6,7 @@ include ../shasum.mak
DEFAULT_VERSION := $(NXT_VERSION)
VERSION ?= $(DEFAULT_VERSION)
+PATCHLEVEL ?= 1
EXPORT_DIR := $(VERSION)
@@ -73,6 +74,7 @@ Dockerfile.%: ../../version template.Dockerfile
@echo "===> Building $@"
cat template.Dockerfile | sed \
-e 's,@@VERSION@@,$(VERSION),g' \
+ -e 's,@@PATCHLEVEL@@,$(PATCHLEVEL),g' \
-e 's,@@CONTAINER@@,$(CONTAINER_$(call modname, $*)),g' \
-e 's,@@CONFIGURE@@,$(CONFIGURE_$(call modname, $*)),g' \
-e 's,@@INSTALL@@,$(INSTALL_$(call modname, $*)),g' \