From 2e95f683ec6d8ea3ffcb552dd70fdc9a9ebd48bb Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Tue, 31 Dec 2024 07:22:46 +0000 Subject: [PATCH] Include NPM dependences in image hash The container image for local previewing will need a rebuild if the NPM dependencies change. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 52503ab5cf..21f7e346b6 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ NETLIFY_FUNC = $(NODE_BIN)/netlify-lambda # CONTAINER_ENGINE=podman make container-image CONTAINER_ENGINE ?= docker IMAGE_REGISTRY ?= gcr.io/k8s-staging-sig-docs -IMAGE_VERSION=$(shell scripts/hash-files.sh Dockerfile Makefile | cut -c 1-12) +IMAGE_VERSION=$(shell scripts/hash-files.sh Dockerfile Makefile package.json package-lock.json | cut -c 1-12) CONTAINER_IMAGE = $(IMAGE_REGISTRY)/k8s-website-hugo:v$(HUGO_VERSION)-$(IMAGE_VERSION) # Mount read-only to allow use with tools like Podman in SELinux mode # Container targets don't need to write into /src