Skip to content

Commit

Permalink
Moifico el código donde prueba que la aplicación esté corriendo
Browse files Browse the repository at this point in the history
  • Loading branch information
martinchogimenez committed Apr 17, 2024
1 parent 26ba9d0 commit 06563d7
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/CI_Proveedores-QA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,18 @@ jobs:
# ssh -i ${{ secrets.PEM_PROV_QA }} ec2-user@${{ secrets.IP_PROV_QA }} 'docker pull 471626/imagen-prov-qa && docker run -d -p 3000:3000 471626/imagen-prov-qa'

- name: Verify Service is Running
run: |
ssh -i ${{ secrets.PEM_PROV_QA }} ec2-user@${{ secrets.IP_PROV_QA }} 'docker ps -a'
uses: appleboy/ssh-action@master
with:
host: ${{ env.REMOTE_HOST }}
username: ${{ env.REMOTE_USER }}
key: ${{ env.SSH_PRIVATE_KEY }}
script: |
cd /opt/compras
if curl http://localhost:3001 > /dev/null; then
echo "App ok"
else
echo "Error"
exit 1
fi
# run: |
# ssh -i ${{ secrets.PEM_PROV_QA }} ec2-user@${{ secrets.IP_PROV_QA }} 'docker ps -a'

0 comments on commit 06563d7

Please sign in to comment.