Skip to content
GitLab
Explore
Sign in
Commits on Source (4)
feat: add hadolint
· 9dc9d460
G.J.R. Timmer
authored
Nov 17, 2024
9dc9d460
ops: fix stages
· 99b2b2ef
G.J.R. Timmer
authored
Nov 17, 2024
99b2b2ef
fix: job name
· 60d072c8
G.J.R. Timmer
authored
Nov 17, 2024
60d072c8
fix: docker lint
· aa6a20c3
G.J.R. Timmer
authored
Nov 17, 2024
aa6a20c3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
aa6a20c3
...
...
@@ -14,7 +14,7 @@ include:
-
docker:amd64
-
docker:arm64
stages
:
[
build
,
test
,
release
]
stages
:
[
test
,
deploy
,
release
]
test:amd64
:
stage
:
test
...
...
Dockerfile
View file @
aa6a20c3
# hadolint ignore=DL3007
FROM
alpine:latest
# Test Image
\ No newline at end of file
templates/amd64/template.yml
View file @
aa6a20c3
...
...
@@ -4,7 +4,7 @@ spec:
stage
:
type
:
string
description
:
"
Build
stage"
default
:
build
default
:
deploy
dockerfile
:
type
:
string
description
:
"
Dockerfile
name"
...
...
@@ -83,6 +83,14 @@ include:
-
local
:
/default.yml
-
local
:
/vars.yml
check:$[[ inputs.name ]]
:
stage
:
test
image
:
harbor.local/docker.io/hadolint/hadolint:latest-alpine
before_script
:
-
hadolint --version
script
:
-
hadolint --ignore DL3059 --ignore DL3006 --ignore DL3018 $[[ inputs.dockerfile ]]
docker:$[[ inputs.name ]]
:
tags
:
$[[ inputs.runner ]]
stage
:
$[[ inputs.stage ]]
...
...
templates/arm64/template.yml
View file @
aa6a20c3
...
...
@@ -4,7 +4,7 @@ spec:
stage
:
type
:
string
description
:
"
Build
stage"
default
:
build
default
:
deploy
dockerfile
:
type
:
string
description
:
"
Dockerfile
name"
...
...
@@ -83,6 +83,14 @@ include:
-
local
:
/default.yml
-
local
:
/vars.yml
check:$[[ inputs.name ]]
:
stage
:
test
image
:
harbor.local/docker.io/hadolint/hadolint:latest-alpine
before_script
:
-
hadolint --version
script
:
-
hadolint --ignore DL3059 --ignore DL3006 --ignore DL3018 $[[ inputs.dockerfile ]]
docker:$[[ inputs.name ]]
:
tags
:
$[[ inputs.runner ]]
stage
:
$[[ inputs.stage ]]
...
...
templates/armv7/template.yml
View file @
aa6a20c3
...
...
@@ -4,7 +4,7 @@ spec:
stage
:
type
:
string
description
:
"
Build
stage"
default
:
build
default
:
deploy
dockerfile
:
type
:
string
description
:
"
Dockerfile
name"
...
...
@@ -83,6 +83,14 @@ include:
-
local
:
/default.yml
-
local
:
/vars.yml
check:$[[ inputs.name ]]
:
stage
:
test
image
:
harbor.local/docker.io/hadolint/hadolint:latest-alpine
before_script
:
-
hadolint --version
script
:
-
hadolint --ignore DL3059 --ignore DL3006 --ignore DL3018 $[[ inputs.dockerfile ]]
docker:$[[ inputs.name ]]
:
tags
:
$[[ inputs.runner ]]
stage
:
$[[ inputs.stage ]]
...
...
templates/multi/template.yml
View file @
aa6a20c3
...
...
@@ -4,7 +4,7 @@ spec:
stage
:
type
:
string
description
:
"
Build
stage"
default
:
build
default
:
deploy
dockerfile
:
type
:
string
description
:
"
Dockerfile
name"
...
...
@@ -87,6 +87,14 @@ include:
-
local
:
/default.yml
-
local
:
/vars.yml
check:$[[ inputs.name ]]
:
stage
:
test
image
:
harbor.local/docker.io/hadolint/hadolint:latest-alpine
before_script
:
-
hadolint --version
script
:
-
hadolint --ignore DL3059 --ignore DL3006 --ignore DL3018 $[[ inputs.dockerfile ]]
docker:$[[ inputs.name ]]
:
tags
:
$[[ inputs.runner ]]
stage
:
$[[ inputs.stage ]]
...
...