Skip to content

Split compose & caddy files #8

Split compose & caddy files

Split compose & caddy files #8

Workflow file for this run

name: Validate Caddyfile
on:
push:
branches:
- dev
- main
pull_request:
paths:
- .github/workflows/build-caddy.yml
- caddy/**/*
workflow_dispatch:
jobs:
validate-caddyfile:
runs-on: ubuntu-latest
container: caddy
env:
SERVER_DOMAIN: orbitar.test
BACKEND_DOMAIN: orbitar.backend
TLS_CERT_PATH: '{}'
TLS_KEY_PATH:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate Caddyfile
env:
SERVER_HOST: http://orbitar.test
API_HOST: http://api.orbitar.test
run: caddy validate --config caddy/Caddyfile
- name: Switch to deploy-frontend
run: |
rm caddy/dev.frontend.Caddyfile
mv caddy/deploy-frontend.Caddyfile caddy/deploy.frontend.Caddyfile
- name: Validate Caddyfile with deploy-frontend
env:
SERVER_HOST: https://orbitar.test
API_HOST: https://api.orbitar.test
run: caddy validate --config caddy/Caddyfile