deploy-tomtervel: kron.env is one of the optional env files
The first deploy with the pay profile failed: compose wanted kron.env in the checkout and the host script only moves the files it knows. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2 files changed
+8
-3
No files matched your search
@@ -165,7 +165,11 @@ address either.
|
|||||||
Going live, in order:
|
Going live, in order:
|
||||||
|
|
||||||
1. Set `PAY_HOST`, `VIPPS_MSN` and the three key secrets (table above).
|
1. Set `PAY_HOST`, `VIPPS_MSN` and the three key secrets (table above).
|
||||||
The keys are in `pass` as `tomtervel/vipps/medlemskap`.
|
The keys are in `pass` as `tomtervel/vipps/medlemskap`. The host
|
||||||
|
script must know `kron.env` (this repo's `deploy-tomtervel`, optional
|
||||||
|
files): on kasse, `sudo install -m 0755 -o root -g root
|
||||||
|
/srv/tomtervel/infrastructure/deploy-tomtervel /usr/local/bin/deploy-tomtervel`
|
||||||
|
after the pull, since the installed copy does not update itself.
|
||||||
2. Merge the DNS record (`dns/dnsconfig.js`, `betaling`) and run the DNS
|
2. Merge the DNS record (`dns/dnsconfig.js`, `betaling`) and run the DNS
|
||||||
workflow; add the `betaling.tomtervel.no` block from
|
workflow; add the `betaling.tomtervel.no` block from
|
||||||
`host-caddy/tomtervel.no` to kasse's Caddy.
|
`host-caddy/tomtervel.no` to kasse's Caddy.
|
||||||
|
|||||||
+3
-2
@@ -18,8 +18,9 @@ set -euo pipefail
|
|||||||
root=/srv/tomtervel/infrastructure
|
root=/srv/tomtervel/infrastructure
|
||||||
stage=/var/lib/gitea-runner/tomtervel-env
|
stage=/var/lib/gitea-runner/tomtervel-env
|
||||||
files=(.env portal.env nats.env chat.env)
|
files=(.env portal.env nats.env chat.env)
|
||||||
# Written only when the site runs what needs it (Rauthy).
|
# Written only when the site runs what needs it (Rauthy, the money
|
||||||
optional=(rauthy.env)
|
# service under the pay profile).
|
||||||
|
optional=(rauthy.env kron.env)
|
||||||
|
|
||||||
[ -d "$root/.git" ] || { echo "no checkout at $root - bootstrap it first" >&2; exit 1; }
|
[ -d "$root/.git" ] || { echo "no checkout at $root - bootstrap it first" >&2; exit 1; }
|
||||||
for f in "${files[@]}"; do
|
for f in "${files[@]}"; do
|
||||||
|
|||||||
Reference in new issue
Block a user