Skip to content

Commit

Permalink
Update coop_stg_ci_cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GSMgeeth authored Jan 29, 2025
1 parent a1af2ca commit 321179c
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/coop_stg_ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,16 @@ jobs:
sudo chown -R appuser:appuser /home/appuser/app/latest
sudo su - appuser
cd $WAR_DIR
echo whoami
# Remove old backup if it exists
if [ -f $WAR_NAME.old ]; then
rm $WAR_NAME.old
fi
# If the current WAR file exists, back it up
if [ -f $WAR_NAME ]; then
mv $WAR_NAME $WAR_NAME.old
fi
# if [ -f $WAR_NAME.old ]; then
# rm $WAR_NAME.old
# fi
# # If the current WAR file exists, back it up
# if [ -f $WAR_NAME ]; then
# mv $WAR_NAME $WAR_NAME.old
# fi
"
# Copy new WAR file to the server
Expand Down

0 comments on commit 321179c

Please sign in to comment.