fix(deploy): support isolated temporary production release

This commit is contained in:
2026-10-07 11:09:41 +08:00
parent 899978e53d
commit ca7f6aa414
5 changed files with 132 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"