breakout71/staging_deploy.sh

18 lines
440 B
Bash
Raw Normal View History

2025-03-14 22:14:57 +01:00
#!/bin/bash
set -e
set -x
2025-03-14 22:21:47 +01:00
versionCode=$(($(date +%s) / 60))
bash ./build.sh $versionCode
# we don't add a version tag to let fdroid ignore this build
2025-03-14 22:14:57 +01:00
# upload to breakout-v3-staging.lecaro.me
DOMAIN="breakout-v3-staging.lecaro.me"
PUBLIC_CONTENT="./build/*"
2025-03-14 22:14:57 +01:00
ssh staging "mkdir -p /opt/mup-nginx-proxy/config/html/static_sites/$DOMAIN"
rsync -avz --delete $PUBLIC_CONTENT staging:/opt/mup-nginx-proxy/config/html/static_sites/$DOMAIN