Sanitized mirror from private repository - 2026-03-30 18:54:02 UTC
This commit is contained in:
15
hosts/synology/calypso/retro-webhook/deploy.sh
Normal file
15
hosts/synology/calypso/retro-webhook/deploy.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
# Deploy script for retro.vish.gg
|
||||
# Runs inside the retro-webhook container via adnanh/webhook
|
||||
# Clones the latest retro_site repo into the running nginx container and reloads nginx.
|
||||
set -e
|
||||
echo "[deploy] Starting retro-site update $(date)"
|
||||
docker exec retro-site sh -c "
|
||||
rm -rf /tmp/deploy &&
|
||||
git clone --depth 1 https://REDACTED_TOKEN@git.vish.gg/Vish/retro_site.git /tmp/deploy &&
|
||||
cp -r /tmp/deploy/dist/* /usr/share/nginx/html/ &&
|
||||
cp /tmp/deploy/nginx.conf /etc/nginx/conf.d/default.conf &&
|
||||
nginx -s reload &&
|
||||
rm -rf /tmp/deploy &&
|
||||
echo '[deploy] Done'
|
||||
"
|
||||
Reference in New Issue
Block a user