Caddyfile: Use json formatted log #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |