Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
feat: add conditional check
· 7082664f
G.J.R. Timmer
authored
Jan 21, 2025
7082664f
Hide whitespace changes
Inline
Side-by-side
templates/amd64/template.yml
View file @
7082664f
...
...
@@ -81,6 +81,10 @@ spec:
type
:
array
description
:
"
Runners"
default
:
[]
check
:
type
:
boolean
description
:
"
Run
hadolint"
default
:
true
---
include
:
...
...
@@ -92,6 +96,10 @@ stages: $[[ inputs.stages ]]
check:$[[ inputs.name ]]
:
stage
:
test
image
:
harbor.local/docker.io/hadolint/hadolint:latest-alpine
rules
:
-
if
:
'
"$[[
inputs.check
]]"
==
"true"'
when
:
on_success
-
when
:
never
before_script
:
-
hadolint --version
script
:
...
...
templates/arm64/template.yml
View file @
7082664f
...
...
@@ -81,6 +81,10 @@ spec:
type
:
array
description
:
"
Runners"
default
:
[]
check
:
type
:
boolean
description
:
"
Run
hadolint"
default
:
true
---
include
:
...
...
@@ -92,6 +96,10 @@ stages: $[[ inputs.stages ]]
check:$[[ inputs.name ]]
:
stage
:
test
image
:
harbor.local/docker.io/hadolint/hadolint:latest-alpine
rules
:
-
if
:
'
"$[[
inputs.check
]]"
==
"true"'
when
:
on_success
-
when
:
never
before_script
:
-
hadolint --version
script
:
...
...
templates/armv7/template.yml
View file @
7082664f
...
...
@@ -81,6 +81,10 @@ spec:
type
:
array
description
:
"
Runners"
default
:
[]
check
:
type
:
boolean
description
:
"
Run
hadolint"
default
:
true
---
include
:
...
...
@@ -92,6 +96,10 @@ stages: $[[ inputs.stages ]]
check:$[[ inputs.name ]]
:
stage
:
test
image
:
harbor.local/docker.io/hadolint/hadolint:latest-alpine
rules
:
-
if
:
'
"$[[
inputs.check
]]"
==
"true"'
when
:
on_success
-
when
:
never
before_script
:
-
hadolint --version
script
:
...
...
templates/multi/template.yml
View file @
7082664f
...
...
@@ -85,6 +85,10 @@ spec:
type
:
array
description
:
"
Runners"
default
:
[]
check
:
type
:
boolean
description
:
"
Run
hadolint"
default
:
true
---
include
:
...
...
@@ -96,6 +100,10 @@ stages: $[[ inputs.stages ]]
check:$[[ inputs.name ]]
:
stage
:
test
image
:
harbor.local/docker.io/hadolint/hadolint:latest-alpine
rules
:
-
if
:
'
"$[[
inputs.check
]]"
==
"true"'
when
:
on_success
-
when
:
never
before_script
:
-
hadolint --version
script
:
...
...