single step production build

This commit is contained in:
simon 2022-12-22 10:49:43 +07:00
parent 7d48b7f78f
commit d8c3f62055
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -24,9 +24,7 @@ function docker_publish {
rsync -a --progress --delete helper_scripts $public_host: rsync -a --progress --delete helper_scripts $public_host:
rsync -a --progress --delete builder/ $public_host:builder rsync -a --progress --delete builder/ $public_host:builder
ssh "$public_host" "mkdir -p builder/clone" ssh "$public_host" "mkdir -p builder/clone"
ssh "$public_host" 'docker compose -f docker/docker-compose.yml up -d --build'
ssh "$public_host" 'docker compose -f docker/docker-compose.yml build tubearchivist'
ssh "$public_host" 'docker compose -f docker/docker-compose.yml up -d'
} }
# check package versions in requirements.txt for updates # check package versions in requirements.txt for updates