fix blackhole deployment

This commit is contained in:
Simon 2025-01-27 21:15:22 +07:00
parent 05ff9df049
commit 759f57aa0c
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 7 additions and 3 deletions

View File

@ -18,20 +18,24 @@ set -e
function sync_blackhole {
host="blackhole.local"
host="blackhole.lan"
rsync -a --progress --delete-after \
--exclude ".git" \
--exclude ".gitignore" \
--exclude "**/cache" \
--exclude "**/__pycache__/" \
--exclude "**/.pytest_cache/" \
--exclude "**/static/" \
--exclude "**/node_modules/" \
--exclude "**/.env" \
--exclude ".venv" \
--exclude "db.sqlite3" \
--exclude ".mypy_cache" \
. -e ssh "$host":tubearchivist
ssh "$host" 'docker build -t bbilly1/tubearchivist --build-arg TARGETPLATFORM="linux/amd64" tubearchivist'
ssh "$host" 'docker compose up -d'
ssh "$host" 'docker build -t bbilly1/tubearchivist:unstable tubearchivist'
ssh "$host" 'docker compose up -d -f docker/docker-compose.yml'
}