Skip to content

Github Workflows: change caddy version to 2.6.2 #2

Github Workflows: change caddy version to 2.6.2

Github Workflows: change caddy version to 2.6.2 #2

name: Validate Caddyfiles
on:
push:
branches: [ main ]
paths:
- svcs/data/caddy/**
- .github/workflows/validate-caddy.yml
pull_request:
branches: [ main ]
paths:
- svcs/data/caddy/**
- .github/workflows/validate-caddy.yml
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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.green
run: caddy validate --config ./svcs/data/caddy/Caddyfile.green