mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 21:39:49 +00:00
fix blackhole deployment
This commit is contained in:
10
deploy.sh
10
deploy.sh
@@ -18,20 +18,24 @@ set -e
|
|||||||
|
|
||||||
function sync_blackhole {
|
function sync_blackhole {
|
||||||
|
|
||||||
host="blackhole.local"
|
host="blackhole.lan"
|
||||||
|
|
||||||
rsync -a --progress --delete-after \
|
rsync -a --progress --delete-after \
|
||||||
--exclude ".git" \
|
--exclude ".git" \
|
||||||
--exclude ".gitignore" \
|
--exclude ".gitignore" \
|
||||||
--exclude "**/cache" \
|
--exclude "**/cache" \
|
||||||
--exclude "**/__pycache__/" \
|
--exclude "**/__pycache__/" \
|
||||||
|
--exclude "**/.pytest_cache/" \
|
||||||
|
--exclude "**/static/" \
|
||||||
|
--exclude "**/node_modules/" \
|
||||||
|
--exclude "**/.env" \
|
||||||
--exclude ".venv" \
|
--exclude ".venv" \
|
||||||
--exclude "db.sqlite3" \
|
--exclude "db.sqlite3" \
|
||||||
--exclude ".mypy_cache" \
|
--exclude ".mypy_cache" \
|
||||||
. -e ssh "$host":tubearchivist
|
. -e ssh "$host":tubearchivist
|
||||||
|
|
||||||
ssh "$host" 'docker build -t bbilly1/tubearchivist --build-arg TARGETPLATFORM="linux/amd64" tubearchivist'
|
ssh "$host" 'docker build -t bbilly1/tubearchivist:unstable tubearchivist'
|
||||||
ssh "$host" 'docker compose up -d'
|
ssh "$host" 'docker compose up -d -f docker/docker-compose.yml'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user