diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 818830c..d1b49b2 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: # `kubectl port-forward` — runbook §5. Override with repo variables. TALOS_VM_IP: ${{ vars.TALOS_VM_IP }} TALOS_HOST: ${{ vars.TALOS_HOST }} + # Set it and the stack is published over TLS on . by the + # in-cluster edge (ADR-0035, runbook §10). Empty = NodePorts, as before. + PUBLIC_DOMAIN: ${{ vars.PUBLIC_DOMAIN }} + PUBLIC_EMAIL: ${{ vars.PUBLIC_EMAIL }} steps: - uses: https://github.com/actions/checkout@v4 @@ -89,7 +93,13 @@ jobs: # The jobs are idempotent, and deleting them first is what keeps a changed # Job template from wedging the upgrade (`cannot patch … with kind Job`). - name: Deploy the chart - run: make k8s-reseed TALOS_HOST=${TALOS_HOST:-localhost} K8S_REGISTRY=${TALOS_VM_IP:-192.168.122.173}:30500 + run: | + set -euo pipefail + publish="${PUBLIC_DOMAIN:+--set public.domain=$PUBLIC_DOMAIN --set public.email=${PUBLIC_EMAIL:-}}" + make k8s-reseed \ + TALOS_HOST=${TALOS_HOST:-localhost} \ + K8S_REGISTRY=${TALOS_VM_IP:-192.168.122.173}:30500 \ + K8S_SET="$publish" # `dev` is a mutable tag and helm sees an unchanged pod template, so the # new images only land on a restart (pullPolicy is already Always).