Chaning stg dockerfile to use ubuntu 16.04, minor changes to use vps4 for staging

This commit is contained in:
Finley Ghosh 2025-08-10 11:45:08 +10:00
parent 3684a81b7c
commit 33795bb47f
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
# This is 99% the same as the prod one. I should do something smarter here.
FROM ubuntu:lucid
FROM ubuntu:16.04
# Set environment variables.
ENV HOME /root

View file

@ -21,7 +21,7 @@ fi
echo "Starting staging deployment for cmc-sales..."
echo "Setting variables..."
SERVER="cmc"
SERVER="cmc-sales"
REPO="git@code.springupsoftware.com:cmc/cmc-sales.git"
BRANCH="stg"
STAGING_DIR="cmc-sales-staging"
@ -32,6 +32,7 @@ ssh $SERVER \
"SERVER=$SERVER REPO='$REPO' BRANCH='$BRANCH' STAGING_DIR='$STAGING_DIR' USE_CACHE='$USE_CACHE' RUN_SYNC='$RUN_SYNC' bash -s" << 'ENDSSH'
set -e
echo "Connected to $SERVER."
cd /home/cmc
# Clone or update staging branch
if [ -d "$STAGING_DIR" ]; then
echo "Updating existing staging directory $STAGING_DIR..."