mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +00:00
add yamllint
This commit is contained in:
parent
e45a354eef
commit
dd4b3b576b
3 changed files with 35 additions and 9 deletions
|
@ -24,3 +24,11 @@ steps:
|
||||||
- event: pull_request
|
- event: pull_request
|
||||||
- event: push
|
- event: push
|
||||||
branch: renovate/*
|
branch: renovate/*
|
||||||
|
|
||||||
|
yamllint:
|
||||||
|
image: pipelinecomponents/yamllint:0.31.1
|
||||||
|
depends_on: []
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
- event: push
|
||||||
|
branch: renovate/*
|
||||||
|
|
19
.yamllint.yaml
Normal file
19
.yamllint.yaml
Normal file
|
@ -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
|
|
@ -4,19 +4,18 @@ services:
|
||||||
image: haproxy
|
image: haproxy
|
||||||
ports: ["443:443"]
|
ports: ["443:443"]
|
||||||
volumes:
|
volumes:
|
||||||
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
|
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
|
||||||
- ./dhparam.pem:/etc/ssl/dhparam.pem:ro
|
- ./dhparam.pem:/etc/ssl/dhparam.pem:ro
|
||||||
- ./haproxy-certificates:/etc/ssl/private/haproxy:ro
|
- ./haproxy-certificates:/etc/ssl/private/haproxy:ro
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
gitea:
|
gitea:
|
||||||
image: caddy
|
image: caddy
|
||||||
volumes:
|
volumes:
|
||||||
- ./gitea-www:/srv:ro
|
- ./gitea-www:/srv:ro
|
||||||
- ./gitea.Caddyfile:/etc/caddy/Caddyfile:ro
|
- ./gitea.Caddyfile:/etc/caddy/Caddyfile:ro
|
||||||
pages:
|
pages:
|
||||||
image: caddy
|
image: caddy
|
||||||
volumes:
|
volumes:
|
||||||
- ./pages-www:/srv:ro
|
- ./pages-www:/srv:ro
|
||||||
- ./pages.Caddyfile:/etc/caddy/Caddyfile:ro
|
- ./pages.Caddyfile:/etc/caddy/Caddyfile:ro
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue