Skip to content

Caddyfile: Use json formatted log (#337) #25

Caddyfile: Use json formatted log (#337)

Caddyfile: Use json formatted log (#337) #25

Workflow file for this run

name: 'Lint: Caddyfile'
on:
push:
paths:
- '**/Caddyfile'
- .github/workflows/lint-caddy.yml
pull_request:
paths:
- '**/Caddyfile'
- .github/workflows/lint-caddy.yml
jobs:
caddy-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run caddy fmt
run: |
cd caddy
for CADDYFILE in *; do
cp $CADDYFILE Caddyfile.orig
docker run -v "$PWD/$CADDYFILE":/srv/Caddyfile caddy \
caddy fmt --overwrite
diff Caddyfile.orig $CADDYFILE
done