diff --git a/.github/workflows/service-deploy.yaml b/.github/workflows/service-deploy.yaml index a8216bb..cb31bd3 100644 --- a/.github/workflows/service-deploy.yaml +++ b/.github/workflows/service-deploy.yaml @@ -6,8 +6,8 @@ on: - main env: - EC2_PUBLIC_IP: ai-spill.devops-days-upes.com # TODO replace to your EC2 instance public IP - SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} # TODO define this secret in your GitHub repo settings + EC2_PUBLIC_IP: ai-spill.devops-days-upes.com # Replace with your EC2 instance public IP + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} # Define this secret in your GitHub repo settings jobs: Deploy: @@ -35,7 +35,7 @@ jobs: - name: Copy files to EC2 run: | - scp -o StrictHostKeyChecking=no -i /.ssh/mykey.pem -r * ubuntu@$EC2_PUBLIC_IP:/app + scp -o StrictHostKeyChecking=no -i ~/.ssh/mykey.pem -r * ubuntu@$EC2_PUBLIC_IP:/app - name: Deploy to EC2 run: |