Skip to content

Commit

Permalink
Added -o StrictHostKeyChecking=n to the ssh so it connects to the ssh…
Browse files Browse the repository at this point in the history
… correctly
  • Loading branch information
kmaxii committed Jul 10, 2024
1 parent 5330c23 commit de2ab1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ jobs:
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
run: |
ssh -i ${{ secrets.ORACLE_CLOUD_SSH_PRIVATE_KEY }} ${{ secrets.ORACLE_CLOUD_SSH_USER }}@${{ secrets.ORACLE_CLOUD_IP }} << EOF
cd /path/to/your/project
ssh -i ${{ secrets.ORACLE_CLOUD_SSH_PRIVATE_KEY }} -o StrictHostKeyChecking=no ${{ secrets.ORACLE_CLOUD_SSH_USER }}@${{ secrets.ORACLE_CLOUD_IP }} << 'EOF'
cd website
git pull origin master
docker compose down
export DB_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
export DB_USER=${DB_USER}
export DB_PASSWORD=${DB_PASSWORD}
docker compose down
docker compose pull
docker compose up -d
EOF

0 comments on commit de2ab1b

Please sign in to comment.