ci(deploy): publish the stack over TLS when PUBLIC_DOMAIN is set (refs #175)
The in-cluster edge (#178) is off unless the chart is given a domain, so pass one through from a repository variable. Unset, the deploy is exactly what it was — NodePorts, and the portals reachable only over the SSH forwards. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -27,6 +27,10 @@ jobs:
|
|||||||
# `kubectl port-forward` — runbook §5. Override with repo variables.
|
# `kubectl port-forward` — runbook §5. Override with repo variables.
|
||||||
TALOS_VM_IP: ${{ vars.TALOS_VM_IP }}
|
TALOS_VM_IP: ${{ vars.TALOS_VM_IP }}
|
||||||
TALOS_HOST: ${{ vars.TALOS_HOST }}
|
TALOS_HOST: ${{ vars.TALOS_HOST }}
|
||||||
|
# Set it and the stack is published over TLS on <sub>.<domain> by the
|
||||||
|
# in-cluster edge (ADR-0035, runbook §10). Empty = NodePorts, as before.
|
||||||
|
PUBLIC_DOMAIN: ${{ vars.PUBLIC_DOMAIN }}
|
||||||
|
PUBLIC_EMAIL: ${{ vars.PUBLIC_EMAIL }}
|
||||||
steps:
|
steps:
|
||||||
- uses: https://github.com/actions/checkout@v4
|
- 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
|
# The jobs are idempotent, and deleting them first is what keeps a changed
|
||||||
# Job template from wedging the upgrade (`cannot patch … with kind Job`).
|
# Job template from wedging the upgrade (`cannot patch … with kind Job`).
|
||||||
- name: Deploy the chart
|
- 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
|
# `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).
|
# new images only land on a restart (pullPolicy is already Always).
|
||||||
|
|||||||
Reference in New Issue
Block a user