File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 4
4
# change is that the Hugo version is now an overridable argument rather than a fixed
5
5
# environment variable.
6
6
7
+ # Bump this by 1 whenever you change the Dockerfile below, e.g. if
8
+ # `DOCKERFFILE_VERSION=1` then change this to `DOCKERFILE_VERSION=2` when you
9
+ # change something else in this file.
10
+ # DOCKERFILE_VERSION=0
11
+
7
12
FROM alpine:latest
8
13
9
14
LABEL maintainer=
"Luc Perkins <[email protected] >"
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ NETLIFY_FUNC = $(NODE_BIN)/netlify-lambda
6
6
# but this can be overridden when calling make, e.g.
7
7
# CONTAINER_ENGINE=podman make container-image
8
8
CONTAINER_ENGINE ?= docker
9
- CONTAINER_IMAGE = kubernetes-hugo
9
+ DOCKERFILE_VERSION = $(shell grep DOCKERFILE_VERSION Dockerfile | tail -n 1 | cut -d '=' -f 2 | tr -d " \"\n")
10
+ CONTAINER_IMAGE = kubernetes-hugo:v$(HUGO_VERSION ) -$(DOCKERFILE_VERSION )
10
11
CONTAINER_RUN = $(CONTAINER_ENGINE ) run --rm --interactive --tty --volume $(CURDIR ) :/src
11
12
12
13
CCRED =\033[0;31m
You can’t perform that action at this time.
0 commit comments