From 03b47e3407bd6f937ccafb3a7ebbea0bf3253d27 Mon Sep 17 00:00:00 2001 From: Robbie Murray Date: Fri, 8 Dec 2023 10:40:38 +0000 Subject: [PATCH] Github Workflows: optimise Validate Caddy --- .github/workflows/validate-caddy.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/validate-caddy.yml b/.github/workflows/validate-caddy.yml index 55897f28..76c688cf 100644 --- a/.github/workflows/validate-caddy.yml +++ b/.github/workflows/validate-caddy.yml @@ -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