Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pieceowater authored Apr 25, 2024
1 parent b19eefb commit 569f2ae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,13 @@ jobs:
- name: Logout of AWS ECR
run: docker logout ${{ vars.AWS_ACCOUNT_ID }}.dkr.ecr.${{ vars.AWS_REGION }}.amazonaws.com

- name: SSH into EC2 instance and run ls
uses: appleboy/ssh-action@master
with:
host: ${{ vars.EC2_PUBLIC_DNS }}
username: ec2-user
key: ${{ secrets.EC2_SSH_KEY }}
port: 22
script: |
ls

0 comments on commit 569f2ae

Please sign in to comment.