Skip to content

Commit

Permalink
Update dev-push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dbenham authored Oct 25, 2024
1 parent 44399ed commit b5aba4a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/dev-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ jobs:
${{ secrets.KNOWN_HOSTS_STAGE_CMKC_HUBZERO_ORG }}
# - name: dev push to stage.cmkc.hubzero.org
# run: |
# echo "Checking if 'freeze-auto-deployments' file exists and conditionally stashing and pulling"
# echo "Checking if freeze-auto-deployments file exists and conditionally stashing and pulling"
# ssh [email protected] "
# if [ ! -f /var/www/stage/freeze-auto-deployments ]; then
# echo 'No freeze-auto-deployments file found. Proceeding with stash and pull.'
# echo "No freeze-auto-deployments file found. Proceeding with stash and pull."
# echo \"$(date) - No freeze-auto-deployments file found. Stashing and pulling.\" >> /var/www/stage/auto-deployments.log
# cd /var/www/stage/;
# git stash -u >> /var/www/stage/auto-deployments.log 2>&1;
# git pull >> /var/www/stage/auto-deployments.log 2>&1;
# echo \"$(date) - Stash and pull completed.\" >> /var/www/stage/auto-deployments.log
# else
# echo 'freeze-auto-deployments file exists. Skipping stash and pull.'
# echo "freeze-auto-deployments file exists. Skipping stash and pull."
# echo \"$(date) - freeze-auto-deployments file exists. Stash and pull skipped.\" >> /var/www/stage/auto-deployments.log
# fi
# "
- name: dev push to dev.purr.purdue.edu
run: |
echo "Checking if 'freeze-auto-deployments' file exists and conditionally stashing and pulling"
echo "Checking if freeze-auto-deployments file exists and conditionally stashing and pulling"
ssh -o StrictHostKeyChecking=no [email protected] "
if [ ! -f /var/www/dev/freeze-auto-deployments ]; then
echo 'No freeze-auto-deployments file found. Proceeding with stash and pull."
echo "No freeze-auto-deployments file found. Proceeding with stash and pull."
echo \"$(date) ----------------------------------------- begin auto deployment"
echo \"$(date) - No freeze-auto-deployments file found. Stashing and pulling.\" >> /var/www/dev/auto-deployments.log
cd /var/www/dev/;
Expand All @@ -42,7 +42,7 @@ jobs:
git pull --ff-only >> /var/www/dev/auto-deployments.log 2>&1;
echo \"$(date) ----------------------------------------- end auto deployment"
else
echo 'freeze-auto-deployments file exists. Skipping stash and pull."
echo "freeze-auto-deployments file exists. Skipping stash and pull."
echo \"$(date) - freeze-auto-deployments file exists, auto deployment skipped.\" >> /var/www/dev/auto-deployments.log
fi
"

0 comments on commit b5aba4a

Please sign in to comment.