Split compose & caddy files #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |