fix(deploy): support isolated temporary production release

This commit is contained in:
2026-10-07 11:09:42 +08:00
parent b3f78207b8
commit b7fcc14e59
5 changed files with 131 additions and 9 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
set -eu
set +x
export DOCKER_CONFIG
DOCKER_CONFIG=$(mktemp -d)
cleanup() { rm -f "$DOCKER_CONFIG/config.json"; rmdir "$DOCKER_CONFIG" 2>/dev/null || true; }
trap cleanup EXIT HUP INT TERM
docker login -u "$1" --password-stdin "$2"
docker pull "$3"