From 53330d2d2c22f4b248c0f51528b2da484b9d22c3 Mon Sep 17 00:00:00 2001 From: Jacob Woffenden Date: Thu, 4 Apr 2024 07:50:28 +0000 Subject: [PATCH] Update Makefile Add CST config Signed-off-by: GitHub --- Makefile | 8 +++++++- test/container-structure-test.yml | 12 ++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 test/container-structure-test.yml diff --git a/Makefile b/Makefile index c2b9ae6..683def0 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,8 @@ +IMAGE_NAME = ghcr.io/ministryofjustice/observability-platform-grafana-api-key-rotator:latest + +test: build + container-structure-test test --config test/container-structure-test.yml --image $(IMAGE_NAME) + build: - docker build --file Dockerfile --tag ghcr.io/ministryofjustice/observability-platform-grafana-api-key-rotator:latest . + docker build --file Dockerfile --tag $(IMAGE_NAME) . + diff --git a/test/container-structure-test.yml b/test/container-structure-test.yml new file mode 100644 index 0000000..5c6406c --- /dev/null +++ b/test/container-structure-test.yml @@ -0,0 +1,12 @@ +--- +schemaVersion: 2.0.0 + +fileExistenceTests: + - name: "function.py" + path: "/var/task/function.py" + + - name: "requirements.txt" + path: "/var/task/requirements.txt" + + - name: "requirements-pip.txt" + path: "/var/task/requirements-pip.txt"