From ddd628a0180d2d7a4b03c072404293b46036a1f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20J=2E=20Salmer=C3=B3n-Garc=C3=ADa?= Date: Thu, 15 Sep 2022 15:30:00 +0200 Subject: [PATCH] [bitnami/clickhouse] Add VIB files (#6622) Signed-off-by: Javier Salmeron Garcia Signed-off-by: Javier Salmeron Garcia --- .vib/clickhouse/vib-publish.json | 77 ++++++++++++++++++++++++++++++++ .vib/clickhouse/vib-verify.json | 53 ++++++++++++++++++++++ 2 files changed, 130 insertions(+) create mode 100644 .vib/clickhouse/vib-publish.json create mode 100644 .vib/clickhouse/vib-verify.json diff --git a/.vib/clickhouse/vib-publish.json b/.vib/clickhouse/vib-publish.json new file mode 100644 index 000000000000..53f309a18873 --- /dev/null +++ b/.vib/clickhouse/vib-publish.json @@ -0,0 +1,77 @@ +{ + "context": { + "resources": { + "url": "{SHA_ARCHIVE}", + "path": "{VIB_ENV_PATH}" + } + }, + "phases": { + "package": { + "actions": [ + { + "action_id": "container-image-package", + "params": { + "application": { + "details": { + "name": "{VIB_ENV_CONTAINER}", + "tag": "{VIB_ENV_TAG}" + } + }, + "architectures": [ + "linux/amd64" + ] + } + }, + { + "action_id": "container-image-lint", + "params": { + "threshold": "error" + } + } + ] + }, + "verify": { + "actions": [ + { + "action_id": "trivy", + "params": { + "threshold": "CRITICAL", + "vuln_type": [ + "OS" + ] + } + }, + { + "action_id": "grype", + "params": { + "threshold": "CRITICAL", + "package_type": [ + "OS" + ] + } + } + ] + }, + "publish": { + "actions": [ + { + "action_id": "container-image-publish", + "params": { + "application": { + "details": { + "name": "{VIB_ENV_CONTAINER}", + "tag": "{VIB_ENV_TAG}" + } + }, + "repository": { + "kind": "OCI", + "url": "{VIB_ENV_REGISTRY_URL}", + "username": "{VIB_ENV_REGISTRY_USERNAME}", + "password": "{VIB_ENV_REGISTRY_PASSWORD}" + } + } + } + ] + } + } +} diff --git a/.vib/clickhouse/vib-verify.json b/.vib/clickhouse/vib-verify.json new file mode 100644 index 000000000000..835cd556e241 --- /dev/null +++ b/.vib/clickhouse/vib-verify.json @@ -0,0 +1,53 @@ +{ + "context": { + "resources": { + "url": "{SHA_ARCHIVE}", + "path": "{VIB_ENV_PATH}" + } + }, + "phases": { + "package": { + "actions": [ + { + "action_id": "container-image-package", + "params": { + "application": { + "details": { + "name": "{VIB_ENV_CONTAINER}", + "tag": "{VIB_ENV_TAG}" + } + } + } + }, + { + "action_id": "container-image-lint", + "params": { + "threshold": "error" + } + } + ] + }, + "verify": { + "actions": [ + { + "action_id": "trivy", + "params": { + "threshold": "CRITICAL", + "vuln_type": [ + "OS" + ] + } + }, + { + "action_id": "grype", + "params": { + "threshold": "CRITICAL", + "package_type": [ + "OS" + ] + } + } + ] + } + } +} \ No newline at end of file