Skip to content

Commit

Permalink
Update azure_to_azure.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kamalika0363 authored Jun 18, 2024
1 parent 1786942 commit 90a67e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/azure_to_azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ jobs:
ssh-keyscan -H ${{ secrets.VM_IP_ADDRESS }} >> ~/.ssh/known_hosts
# Copy the ZIP file to the VM
scp -i vm_key.pem project_t.zip ${{ secrets.VM_USERNAME }}@${{ secrets.VM_IP_ADDRESS }}:/home/${{ secrets.VM_USERNAME }}/flask-ml/
scp -i vm_key.pem project_t.zip ${{ secrets.VM_USERNAME }}@${{ secrets.VM_IP_ADDRESS }}:/home/kamalikaghora14/flask-ml/
# SSH into the VM, unzip file, delete ZIP, create .env, and start the application
ssh -i vm_key.pem ${{ secrets.VM_USERNAME }}@${{ secrets.VM_IP_ADDRESS }} << 'EOF'
cd /home/${{ secrets.VM_USERNAME }}/flask-ml
cd /home/kamalikaghora14/flask-ml
unzip -o project_t.zip
rm project_t.zip
rm -rf myenv
Expand All @@ -57,4 +57,4 @@ jobs:
sudo systemctl start flask_app.service
EOF
env:
AZURE_STORAGE_KEY: ${{ secrets.AZURE_STORAGE_KEY }}
AZURE_STORAGE_KEY: ${{ secrets.AZURE_STORAGE_KEY }}

0 comments on commit 90a67e7

Please sign in to comment.