Get Logs #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Get Logs" | |
on: | |
workflow_dispatch: | |
jobs: | |
get-logs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get logs from docker | |
uses: appleboy/ssh-action@master | |
with: | |
host: ec2-3-79-82-35.eu-central-1.compute.amazonaws.com | |
username: ec2-user | |
key: ${{ secrets.SSH_KEY }} | |
script: | | |
sudo docker logs ec2-user | |
- name: Check the deployed service URL | |
uses: jtalk/url-health-check-action@v3 | |
with: | |
url: http://ec2-3-79-82-35.eu-central-1.compute.amazonaws.com | |
max-attempts: 3 | |
retry-delay: 5s | |
retry-all: true |