[codex] add duplicati backup status to landingpage #126
Workflow file for this run
This file contains hidden or 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: Linter | |
| on: [ pull_request ] | |
| jobs: | |
| dclint: | |
| name: runner / dclint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - uses: docker-compose-linter/dclint-github-action@v1.6.0 | |
| with: | |
| path: ./ | |
| recursive: true | |
| fix: false | |
| caddyfile: | |
| name: runner / caddyfile | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Prepare dummy CA files | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| mkdir -p "$RUNNER_TEMP/caddy-ca/certs" "$RUNNER_TEMP/caddy-ca/private" | |
| openssl genrsa -out "$RUNNER_TEMP/caddy-ca/private/caddy-intermediate.key" 2048 | |
| openssl req -x509 -new -key "$RUNNER_TEMP/caddy-ca/private/caddy-intermediate.key" \ | |
| -out "$RUNNER_TEMP/caddy-ca/certs/caddy-intermediate.crt" -days 1 \ | |
| -subj "/CN=Dummy Caddy Intermediate" | |
| openssl genrsa -out "$RUNNER_TEMP/caddy-ca/private/blausee_ca.key" 2048 | |
| openssl req -x509 -new -key "$RUNNER_TEMP/caddy-ca/private/blausee_ca.key" \ | |
| -out "$RUNNER_TEMP/caddy-ca/certs/blausee_ca.crt" -days 1 \ | |
| -subj "/CN=Dummy Root CA" | |
| - name: Validate Caddyfile | |
| run: | | |
| CADDY_IMAGE="$(docker compose config --format json | jq -r '.services.caddy.image')" | |
| docker run --rm -u 0 \ | |
| -e CADDY_SUBDOMAIN=example.com \ | |
| -e CADDY_SUBDOMAIN2=example2.com \ | |
| -e CADDY_SUBDOMAIN3=example3.com \ | |
| -e CADDY_ADMIN_USER=admin \ | |
| -e CADDY_ADMIN_PASSWORD=secret \ | |
| -e TELEGRAM_WEBHOOK_SECRET=dummy \ | |
| -v "$GITHUB_WORKSPACE:/work" \ | |
| -v "$RUNNER_TEMP/caddy-ca/certs:/etc/ssl/ca/certs:ro" \ | |
| -v "$RUNNER_TEMP/caddy-ca/private:/etc/ssl/ca/private:ro" \ | |
| -w /work \ | |
| "$CADDY_IMAGE" sh -lc 'caddy validate --config /work/caddy/Caddyfile' | |
| endpoint-authz-policy: | |
| name: runner / endpoint-authz-policy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Verify auth-protected endpoint policy | |
| run: | | |
| bash scripts/test-auth-protected-endpoints.sh caddy/Caddyfile | |
| endpoint-authz-e2e: | |
| name: runner / endpoint-authz-e2e | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Run E2E auth endpoint checks | |
| run: | | |
| bash scripts/test-auth-endpoints-e2e.sh |