-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
61 lines (53 loc) · 1.44 KB
/
.gitlab-ci.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
include:
- remote: 'https://gitlab.com/op_so/projects/gitlab-ci-templates/-/raw/main/templates/lint.gitlab-ci.yml'
- remote: 'https://gitlab.com/op_so/projects/gitlab-ci-templates/-/raw/main/templates/gitlab-release.gitlab-ci.yml'
variables:
IMAGE_DEFAULT: alpine:latest
# IMAGE_DOCKER: docker:latest
IMAGE_DOCKER: docker:25
IMAGE_LYCHEE: lycheeverse/lychee:latest
IMAGE_MARKDOWNLINT: davidanson/markdownlint-cli2
IMAGE_NODE: node:lts-bookworm
IMAGE_PRECOMMIT: jfxs/pre-commit
IMAGE_SHELLCHECK: koalaman/shellcheck:stable
IMAGE_YAMLLINT: jfxs/ansible
LINT_VALE: "true"
# SERVICE_DOCKER_TAG: stable-dind
SERVICE_DOCKER_TAG: 25-dind
stages:
- lint
- tests
- gitlab-release
lint-docker-dind:
image:
name: $IMAGE_DOCKER
services:
- docker:$SERVICE_DOCKER_TAG
stage: tests
before_script:
- sh -c "$(wget -qO - https://taskfile.dev/install.sh)" -- -d
- ./bin/task --version
script:
- ./bin/task lint:docker FILE="tests/lint/Dockerfile"
lint-lychee-dind:
extends: lint-docker-dind
script:
- ./bin/task lint:lychee
allow_failure: true
lint-markdown-dind:
extends: lint-docker-dind
script:
- ./bin/task lint:markdown
lint-shell-dind:
extends: lint-docker-dind
script:
- ./bin/task lint:shell FILES="tests/lint/*.sh"
lint-vale-dind:
extends: lint-docker-dind
script:
- ./bin/task lint:vale
lint-yaml-dind:
extends: lint-docker-dind
script:
- ./bin/task lint:yaml