From dd4b3b576be65b55e754d463a6d901021aa0e56b Mon Sep 17 00:00:00 2001 From: pat-s Date: Sat, 27 Apr 2024 23:40:37 +0200 Subject: [PATCH] add yamllint --- .woodpecker/lint.yml | 8 ++++++++ .yamllint.yaml | 19 +++++++++++++++++++ examples/haproxy-sni/docker-compose.yml | 17 ++++++++--------- 3 files changed, 35 insertions(+), 9 deletions(-) create mode 100644 .yamllint.yaml diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index 02d9ec8..bb0450e 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -24,3 +24,11 @@ steps: - event: pull_request - event: push branch: renovate/* + + yamllint: + image: pipelinecomponents/yamllint:0.31.1 + depends_on: [] + when: + - event: pull_request + - event: push + branch: renovate/* diff --git a/.yamllint.yaml b/.yamllint.yaml new file mode 100644 index 0000000..2b1f87c --- /dev/null +++ b/.yamllint.yaml @@ -0,0 +1,19 @@ +extends: default + +rules: + comments: + require-starting-space: false + ignore-shebangs: true + min-spaces-from-content: 1 + braces: + min-spaces-inside: 1 + max-spaces-inside: 1 + document-start: + present: false + indentation: + spaces: 2 + indent-sequences: true + line-length: + max: 256 + new-lines: + type: unix diff --git a/examples/haproxy-sni/docker-compose.yml b/examples/haproxy-sni/docker-compose.yml index 66ff52b..486264f 100644 --- a/examples/haproxy-sni/docker-compose.yml +++ b/examples/haproxy-sni/docker-compose.yml @@ -4,19 +4,18 @@ services: image: haproxy ports: ["443:443"] volumes: - - ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro - - ./dhparam.pem:/etc/ssl/dhparam.pem:ro - - ./haproxy-certificates:/etc/ssl/private/haproxy:ro + - ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro + - ./dhparam.pem:/etc/ssl/dhparam.pem:ro + - ./haproxy-certificates:/etc/ssl/private/haproxy:ro cap_add: - - NET_ADMIN + - NET_ADMIN gitea: image: caddy volumes: - - ./gitea-www:/srv:ro - - ./gitea.Caddyfile:/etc/caddy/Caddyfile:ro + - ./gitea-www:/srv:ro + - ./gitea.Caddyfile:/etc/caddy/Caddyfile:ro pages: image: caddy volumes: - - ./pages-www:/srv:ro - - ./pages.Caddyfile:/etc/caddy/Caddyfile:ro - + - ./pages-www:/srv:ro + - ./pages.Caddyfile:/etc/caddy/Caddyfile:ro