From 69025b2a7cbb8da56edccf50a0204ff47f681a0f Mon Sep 17 00:00:00 2001 From: dohodin Date: Wed, 18 Oct 2023 15:58:25 +0200 Subject: [PATCH] starlark --- .drone.star | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.drone.star b/.drone.star index 186ff57..814e4ab 100644 --- a/.drone.star +++ b/.drone.star @@ -27,6 +27,15 @@ def main(ctx): "depends_on": ["build"] } + hadolint = { + "name": "hadolint", + "image": "hadolint/hadolint:latest-debian", + "commands": [ + "cd Sources", + "hadolint --ignore DL3059 Dockerfile" + ] + } + code_inspection = { "name": "code-inspection", "image": "hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7", @@ -146,6 +155,7 @@ def main(ctx): if ctx.build.branch == "master": pipeline["steps"].append(build) pipeline["steps"].append(tests) + pipeline["steps"].append(hadolint) pipeline["steps"].append(code_inspection) pipeline["steps"].append(generate_and_deploy_docs) pipeline["steps"].append(generate_swashbuckle) @@ -168,6 +178,7 @@ def main(ctx): pipeline["steps"].append(build) pipeline["steps"].append(tests) + pipeline["steps"].append(hadolint) pipeline["steps"].append(code_inspection) pipeline["steps"].append(generate_and_deploy_docs) pipeline["steps"].append(generate_swashbuckle)