From 569f2aea4f58bd434ccb9518f282a56228be1c1d Mon Sep 17 00:00:00 2001 From: yury mid <94337419+pieceowater@users.noreply.github.com> Date: Thu, 25 Apr 2024 23:50:27 +0500 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8e6584c..478457a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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