The stack's settings are repo variables, its secrets repo secrets, and NATS_PASSWORD an org secret the content repo can share. The deploy workflow checks they are all set, writes .env, portal.env, nats.env and chat.env into the runner's own directory, and the root script (now in the repo as deploy-tomtervel) pulls main, puts them in place as root's and brings the stack up. So nothing is edited on the host or committed: a host name or a version is a variable changed and a Run workflow. nats.conf reads NATS_PASSWORD from its environment, so it is committed rather than rendered. bootstrap.sh only makes Kanidm's config and certificate and recovers its admins; kanidm-setup.sh reads portal.env, and leaves the two secrets it makes in kanidm-setup.secrets for gt. The DNS workflow uses actions/checkout and actions/cache (the runner's cache server) for dnscontrol, at the DNSCONTROL_VERSION variable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM
This commit is contained in:
12 files changed
+282
-207
No files matched your search
+4
-12
@@ -42,6 +42,8 @@ services:
|
||||
image: nats:2.14.6-alpine
|
||||
restart: unless-stopped
|
||||
command: ["-c", "/etc/nats/nats.conf"]
|
||||
# NATS_PASSWORD, which nats.conf reads from the environment.
|
||||
env_file: nats.env
|
||||
volumes:
|
||||
- ./nats/nats.conf:/etc/nats/nats.conf:ro
|
||||
- nats_data:/data
|
||||
@@ -85,20 +87,10 @@ services:
|
||||
args:
|
||||
PORTAL_RELEASE: ${PORTAL_RELEASE}
|
||||
restart: unless-stopped
|
||||
# portal.env holds the secrets (NATS, the OAuth2 secret, the
|
||||
# onboarding token, Garage's keys); what the site is comes from .env
|
||||
# here, and wins over the same name in portal.env.
|
||||
# Written by the deploy workflow from the Actions variables and
|
||||
# secrets (README.md has the table).
|
||||
env_file: portal.env
|
||||
environment:
|
||||
PUBLIC_URL: https://${PORTAL_HOST}
|
||||
KANIDM_URL: https://${ID_HOST}
|
||||
CHAT_URL: https://${CHAT_HOST}
|
||||
OAUTH2_CLIENT_ID: ${OAUTH2_CLIENT_ID}
|
||||
COOKIE_SECURE: "true"
|
||||
CONTENT_REPO: ${CONTENT_REPO}
|
||||
CONTENT_BRANCH: ${CONTENT_BRANCH}
|
||||
PEOPLE_BACKEND: ${PEOPLE_BACKEND}
|
||||
RESPONSIBLE_GROUP: ${RESPONSIBLE_GROUP}
|
||||
LEPTOS_SITE_ADDR: 0.0.0.0:3000
|
||||
LEPTOS_SITE_ROOT: site
|
||||
LEPTOS_HASH_FILES: "true"
|
||||
|
||||
Reference in new issue
Block a user