Skip to content

Caddy

Caddy #2

Workflow file for this run

name: Caddy Format
on:
push:
branches: ["main"]
paths:
- "docker/proxy/**"
workflow_dispatch:
jobs:
format:
name: Format Caddyfile
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Docker
uses: docker/setup-buildx-action@v1
- name: Format Caddyfile
run: docker run --rm -v $(pwd)/docker/proxy/Caddyfile:/Caddyfile caddy:2.4.3-alpine fmt /Caddyfile
- name: Commit changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email ""
git add docker/proxy/Caddyfile
git commit -m "Auto Format Caddyfile"
git push