Skip to content

Caddyfile: Use json formatted log #23

Caddyfile: Use json formatted log

Caddyfile: Use json formatted log #23

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