cleanup
parent
7e403d11da
commit
3058c65a79
|
@ -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
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
cat minetest.conf minetest.conf.keys > data/minetest/minetest.conf
|
Loading…
Reference in New Issue