Skip to content
Snippets Groups Projects
Commit 88de4314 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix(hadolint): fix shell syntax error

parent 05a54cd6
No related branches found
No related tags found
No related merge requests found
...@@ -483,7 +483,7 @@ docker-hadolint: ...@@ -483,7 +483,7 @@ docker-hadolint:
- hadolint --no-fail -f gitlab_codeclimate $DOCKER_HADOLINT_ARGS $hadolint_config_opts "$DOCKER_FILE" > "reports/docker-hadolint-${dockerfile_hash}.codeclimate.json" - hadolint --no-fail -f gitlab_codeclimate $DOCKER_HADOLINT_ARGS $hadolint_config_opts "$DOCKER_FILE" > "reports/docker-hadolint-${dockerfile_hash}.codeclimate.json"
# Output in JSON format # Output in JSON format
- | - |
if [[ "$DEFECTDOJO_HADOLINT_REPORTS"]] if [[ "$DEFECTDOJO_HADOLINT_REPORTS" ]]
then then
hadolint --no-fail -f json $DOCKER_HADOLINT_ARGS $hadolint_config_opts "$DOCKER_FILE" > "reports/docker-hadolint-${dockerfile_hash}.native.json" hadolint --no-fail -f json $DOCKER_HADOLINT_ARGS $hadolint_config_opts "$DOCKER_FILE" > "reports/docker-hadolint-${dockerfile_hash}.native.json"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment