Skip to content

Commit

Permalink
Github Workflows: optimise Validate Caddy
Browse files Browse the repository at this point in the history
  • Loading branch information
RDMurray committed Dec 8, 2023
1 parent ece257d commit 03b47e3
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/validate-caddy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
sparse-checkout: svcs/data/caddy
- name: Set up Caddy
run: |
curl -sSLo caddy.tar.gz "https://github.com/caddyserver/caddy/releases/download/v2.6.2/caddy_2.6.2_linux_amd64.tar.gz"
tar xzvf caddy.tar.gz caddy
sudo mv caddy /usr/local/bin/
caddy version
- name: Set up Caddy
run: |
curl -sSLo caddy.tar.gz "https://github.com/caddyserver/caddy/releases/download/v2.6.2/caddy_2.6.2_linux_amd64.tar.gz"
tar xzvf caddy.tar.gz caddy
sudo mv caddy /usr/local/bin/
caddy version
- name: Verify Caddyfile.blue
run: caddy validate --config ./svcs/data/caddy/Caddyfile.blue

- name: Verify Caddyfile.blue
run: caddy validate --config ./svcs/data/caddy/Caddyfile.blue

- name: Verify Caddyfile.green
run: caddy validate --config ./svcs/data/caddy/Caddyfile.green
- name: Verify Caddyfile.green
run: caddy validate --config ./svcs/data/caddy/Caddyfile.green

0 comments on commit 03b47e3

Please sign in to comment.