Make Tower deploy remote explicit
This commit is contained in:
@@ -137,6 +137,7 @@ def test_tower_deploy_uses_single_container_unraid_compose() -> None:
|
|||||||
for script in (powershell, bash):
|
for script in (powershell, bash):
|
||||||
assert "bash deploy/unraid/deploy-release.sh" in script
|
assert "bash deploy/unraid/deploy-release.sh" in script
|
||||||
assert "git clean -fd -- backend frontend deploy scripts fixtures tests contracts demo" in script
|
assert "git clean -fd -- backend frontend deploy scripts fixtures tests contracts demo" in script
|
||||||
|
assert 'git remote set-url origin "$REMOTE_REPO"' in script
|
||||||
|
|
||||||
assert "docker compose -f docker-compose.unraid.yml config" in release_script
|
assert "docker compose -f docker-compose.unraid.yml config" in release_script
|
||||||
assert "--build-arg GEOINTEL_INSTALL_AI=" in release_script
|
assert "--build-arg GEOINTEL_INSTALL_AI=" in release_script
|
||||||
|
|||||||
@@ -28,7 +28,11 @@ if [ ! -d .git ]; then
|
|||||||
git remote add origin "$REMOTE_REPO"
|
git remote add origin "$REMOTE_REPO"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git remote get-url origin >/dev/null 2>&1 || git remote add origin "$REMOTE_REPO"
|
if git remote get-url origin >/dev/null 2>&1; then
|
||||||
|
git remote set-url origin "$REMOTE_REPO"
|
||||||
|
else
|
||||||
|
git remote add origin "$REMOTE_REPO"
|
||||||
|
fi
|
||||||
git fetch origin "$REMOTE_BRANCH"
|
git fetch origin "$REMOTE_BRANCH"
|
||||||
git reset --hard "origin/$REMOTE_BRANCH"
|
git reset --hard "origin/$REMOTE_BRANCH"
|
||||||
git branch -M "$REMOTE_BRANCH"
|
git branch -M "$REMOTE_BRANCH"
|
||||||
|
|||||||
@@ -32,6 +32,11 @@ if [[ ! -d .git ]]; then
|
|||||||
git remote add origin "$REMOTE_REPO"
|
git remote add origin "$REMOTE_REPO"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if git remote get-url origin >/dev/null 2>&1; then
|
||||||
|
git remote set-url origin "$REMOTE_REPO"
|
||||||
|
else
|
||||||
|
git remote add origin "$REMOTE_REPO"
|
||||||
|
fi
|
||||||
git fetch origin "$REMOTE_BRANCH"
|
git fetch origin "$REMOTE_BRANCH"
|
||||||
git checkout -B "$REMOTE_BRANCH" "origin/$REMOTE_BRANCH"
|
git checkout -B "$REMOTE_BRANCH" "origin/$REMOTE_BRANCH"
|
||||||
# Remove only untracked source files that can enter the image. Persistent
|
# Remove only untracked source files that can enter the image. Persistent
|
||||||
|
|||||||
Reference in New Issue
Block a user