From 0da17031407d0c4055696734dea27b8cd1954e7b Mon Sep 17 00:00:00 2001 From: lyn Date: Mon, 13 Apr 2026 20:50:28 +0000 Subject: [PATCH] Add docker logout to trap in publish-package docker branch --- git-hangman-lab/scripts/publish-package | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/git-hangman-lab/scripts/publish-package b/git-hangman-lab/scripts/publish-package index c5b804c..4e6838e 100755 --- a/git-hangman-lab/scripts/publish-package +++ b/git-hangman-lab/scripts/publish-package @@ -71,7 +71,7 @@ do_docker() { LOCKFILE="$HOME/.openclaw/.docker" lock-mgr acquire "$LOCKFILE" "$KEY" - trap 'lock-mgr release "$LOCKFILE" "$KEY" 2>/dev/null || true' EXIT + trap 'lock-mgr release "$LOCKFILE" "$KEY" 2>/dev/null || true; docker logout "$REGISTRY" 2>/dev/null || true' EXIT echo "Logging in to $REGISTRY..." docker login "$REGISTRY" -u "$OWNER" -p "$(secret-mgr get-secret --key git)" 2>/dev/null @@ -93,7 +93,6 @@ do_docker() { "https://git.hangman-lab.top/api/v1/packages/${OWNER}/container/${IMAGE}/-/link/${REPO_NAME}" || true lock-mgr release "$LOCKFILE" "$KEY" - echo "Done: $FULL_IMAGE" }