-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
43 lines (39 loc) · 889 Bytes
/
Copy path.gitlab-ci.yml
File metadata and controls
43 lines (39 loc) · 889 Bytes
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
stages:
- lint
- smoke-test
variables:
DOCKER_HOST: unix:///var/run/docker.sock
DOCKER_TLS_CERTDIR: ""
lint:
stage: lint
image: python:3.12
script:
- pip install yamllint ruff
- yamllint . --ignore-path .gitignore
- ruff check . --ignore E501
only:
- merge_requests
- main
lint-docker:
stage: lint
image: hadolint/hadolint:latest-alpine
script:
- echo "Docker Compose validation (intent only)"
- yamllint docker-compose.yml
only:
- merge_requests
- main
smoke-test:
stage: smoke-test
image: docker:latest
services:
- docker:dind
script:
- echo "Smoke test: validate docker-compose.yml syntax"
- docker-compose -f docker-compose.yml config > /dev/null
- echo "Smoke test: validate all YAML files"
- yamllint . --ignore-path .gitignore
only:
- merge_requests
- main
allow_failure: false