Merge branch 'main' into fix/remove-only-replaced-images

README: main's restricted database login (#17) became step 6, so the
migration is step 12 and the removal of the replaced images step 13.
This commit is contained in:
Christian Manivong committed 2026-12-02 17:24:46 +01:00
commit 31cc9da537
5 files changed
+305 -7

No files matched your search

+16
View File
@@ -385,6 +385,22 @@ for kv in "REGISTRY_HOST=${REGISTRY_HOST}" "NETORK_VERSION=${SERVER_VERSION}"; d
done
REMOTE_ENV
# On the bundled database, the application's own login that cannot change the
# audit log (NetOrk/netork#2937). The engine image of this version rewrites
# .env (remote/db_login.sh); it runs after the line above, so the file it
# writes names this version, and before the engine is recreated, so the new
# containers start with the new login. netork-api's db_init makes the role.
# A failure stops the deploy here, with the old engine running.
echo "[${SERVER}] Checking the application's database login..."
local login_status=0
# shellcheck disable=SC2029 # the image expands here on purpose
ssh "$SERVER" "ENGINE_IMAGE='${ENGINE_IMAGE}' bash -s" \
< "${HERE}/remote/db_login.sh" 2>&1 | sed "s/^/[${SERVER}] /" || login_status=$?
if [[ $login_status -ne 0 ]]; then
echo "[${SERVER}] FAILED: the application's database login (its output above says why)" >&2
return 1
fi
# The broker, before the engine that cannot work without it. Plain `up -d`
# recreates it only when its compose definition changed, so an unchanged
# broker keeps running and keeps its queue. It used to be in no list at all,