Skip to content

Commit

Permalink
quoting deploy command
Browse files Browse the repository at this point in the history
  • Loading branch information
adl-trey committed Mar 8, 2024
1 parent e988b75 commit e0e721a
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@ jobs:
- name: Deploy code on Staging
run: |
echo "SSH into staging machine."
ssh ${{ secrets.ADLNET_STAGING_HOST_USER }}@${{ secrets.ADLNET_STAGING_HOST }}
cd ${{ secrets.ADLNET_STAGING_PROJECT_DIR }}
echo 'Pulling Latest Code from Repository...'
git pull
echo 'Rebuilding Docker Containers..'
sudo docker-compose stop
sudo docker-compose build --no-cache
sudo docker-compose up -d
echo 'deployed successfully on server'
ssh ${{ secrets.ADLNET_STAGING_HOST_USER }}@${{ secrets.ADLNET_STAGING_HOST }}
"
cd ${{ secrets.ADLNET_STAGING_PROJECT_DIR }}
echo 'Pulling Latest Code from Repository...'
git pull
echo 'Rebuilding Docker Containers..'
sudo docker-compose stop
sudo docker-compose build --no-cache
sudo docker-compose up -d
echo 'deployed successfully on server'
"
cypress-testing:
name: Cypress run
Expand Down

0 comments on commit e0e721a

Please sign in to comment.