Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
Add CST config

Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
Jacob Woffenden authored Apr 4, 2024
1 parent d09af66 commit 53330d2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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) .

12 changes: 12 additions & 0 deletions test/container-structure-test.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 53330d2

Please sign in to comment.