Include NPM dependences in image hash

The container image for local previewing will need a rebuild if the NPM
dependencies change.
pull/49416/head
Tim Bannister 2024-12-31 07:22:46 +00:00 committed by Sayak Mukhopadhyay
parent f79cb93509
commit 2e95f683ec
No known key found for this signature in database
GPG Key ID: 89EEFF3FB23D3FFD
1 changed files with 1 additions and 1 deletions

View File

@ -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