master
BuckarooBanzay 2021-12-02 07:52:38 +01:00
parent 7e403d11da
commit 3058c65a79
2 changed files with 0 additions and 27 deletions

View File

@ -1,25 +0,0 @@
#!/bin/sh
# deployment script for automated updates via github actions
# ensure exclusive execution with flock
LOCK_FILE=/tmp/pandorabox-deployment.lock
exec 200>"$LOCK_FILE"
flock -n 200 || exit
# get latest repo version
git pull
# generate config from secret and public variables
./scripts/generate-config.sh
# pull latest versions of services (only those which track latest/master)
docker-compose pull wiki highscore manager
# update deployment
docker-compose up -d --remove-orphans
# reload nginx config
docker-compose exec -T nginx nginx -s reload
# cleanup old/stale images
docker image prune -af

View File

@ -1,2 +0,0 @@
#!/bin/sh
cat minetest.conf minetest.conf.keys > data/minetest/minetest.conf