From cdb27230b09b5885d69121e614d20975b477f537 Mon Sep 17 00:00:00 2001 From: gabang2 Date: Wed, 10 Jul 2024 20:58:41 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B6=94=EA=B0=80:=20=EC=B6=94'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ccf491c..42a5be2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,15 +28,13 @@ jobs: aws-region: ap-northeast-2 # Step 4: Deploy to EC2 instance - - name: Deploy to server + - name: Run SSH Command uses: appleboy/ssh-action@master - id: deploy with: host: ${{ secrets.EC2_INSTANCE_IP }} - username: ubuntu + username: ec2-user key: ${{ secrets.EC2_SSH_KEY }} - envs: | - DATABASE_URL=${{ secrets.DATABASE_URL }} + port: 22 script: | docker pull public.ecr.aws/h7p2f6d8/ticats_ai:latest docker-compose down