Commit 0a45483
authored
feat: hadolint presteps for treeless shallow checkout (IN-3652) (#379)
## Description
The `checkout` from hadolint job pulls way too much information. This is a prestep to do our own checkout before `hadolint` job cutting the job from 4-5 minutes to <1 minute. It is important to also use `checkout: false` parameter:
```
jobs:
- docker/hadolint:
dockerfiles: Dockerfile:Dockerfile.nginx
ignore_rules: DL3018
failure_threshold: error
checkout: false
pre-steps:
- vfcommon/hadolint_presteps:
ssh_fingerprint: << pipeline.parameters.ssh-fingerprint >>
```
As seen in the [CircleCI job](https://app.circleci.com/pipelines/github/voiceflow/creator-app/307518/workflows/dfd0fa35-a072-41f5-a99b-6e9ca5e64d8e/jobs/1731970) of [this PR](voiceflow/creator-app#16997)
---
**NOTE**: CircleCI does not allow referencing an orb from inside another orb. Only able to use multiple orbs in the project itself.1 parent eaf5392 commit 0a45483
1 file changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments