generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jacob Woffenden <[email protected]>
- Loading branch information
Jacob Woffenden
authored
Sep 26, 2024
1 parent
01c5d78
commit 4e33e57
Showing
18 changed files
with
146 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ | |
"integrity": "sha256:e81d52725655c8ffb861605feac7ad155b447d51af65f6c3a03cab32d59f1e16" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
name: Chart Lint | ||
name: 🗺️ Chart Lint | ||
|
||
on: | ||
pull_request: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
IMAGE_NAME = ghcr.io/ministryofjustice/analytical-platform-mlflow:latest | ||
.PHONY: test build run scan ct | ||
|
||
IMAGE_NAME ?= ghcr.io/ministryofjustice/analytical-platform-mlflow | ||
IMAGE_TAG ?= local | ||
|
||
ct: | ||
ct lint --charts chart | ||
|
||
scan: build | ||
trivy image --vuln-type os,library --severity CRITICAL --exit-code 1 $(IMAGE_NAME) | ||
|
||
run: build | ||
docker-compose --project-directory test --file test/docker-compose.yml up | ||
|
||
test: build | ||
container-structure-test test --platform linux/amd64 --config test/container-structure-test.yml --image $(IMAGE_NAME) | ||
container-structure-test test --platform linux/amd64 --config test/container-structure-test.yml --image $(IMAGE_NAME):$(IMAGE_TAG) | ||
|
||
build: | ||
@ARCH=`uname -m`; \ | ||
@ARCH=`uname --machine`; \ | ||
case $$ARCH in \ | ||
aarch64 | arm64) \ | ||
echo "Building on $$ARCH architecture"; \ | ||
docker build --platform linux/amd64 --file Dockerfile --tag $(IMAGE_NAME) . ;; \ | ||
docker build --platform linux/amd64 --file Dockerfile --tag $(IMAGE_NAME):$(IMAGE_TAG) . ;; \ | ||
*) \ | ||
echo "Building on $$ARCH architecture"; \ | ||
docker build --file Dockerfile --tag $(IMAGE_NAME) . ;; \ | ||
docker build --file Dockerfile --tag $(IMAGE_NAME):$(IMAGE_TAG) . ;; \ | ||
esac | ||
|
||
ct: | ||
ct lint --charts chart |
Oops, something went wrong.