From 4c9b5f60fffe46fe71a2bbabd84adea460ab16f0 Mon Sep 17 00:00:00 2001 From: dooboocookie Date: Thu, 30 Nov 2023 01:29:34 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20ci/cd=20=ED=8C=8C=EC=9D=B4=ED=94=84?= =?UTF-8?q?=EB=9D=BC=EC=9D=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/backend_prod_merge_workflow.yml | 18 +++++++++--------- .../java/com/now/naaga/NaagaApplication.java | 1 - 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/backend_prod_merge_workflow.yml b/.github/workflows/backend_prod_merge_workflow.yml index 93cc2c7bb..67536182b 100644 --- a/.github/workflows/backend_prod_merge_workflow.yml +++ b/.github/workflows/backend_prod_merge_workflow.yml @@ -44,17 +44,17 @@ jobs: - name: 🐳 도컀 이미지 λΉŒλ“œ 쀑... 🐳 run: | cd backend - docker build --platform linux/arm64/v8 -t ${{ secrets.DOCKERHUB_REPOSITORY }}/${{ secrets.DOCKERHUB_APPNAME }} -f Dockerfile-prod . + docker build --platform linux/amd64 -t ${{ secrets.DOCKERHUB_REPOSITORY }}/${{ secrets.DOCKERHUB_APPNAME }} -f Dockerfile-prod . - name: 🐳 도컀 ν—ˆλΈŒμ— Push 쀑... 🐳 run: docker push ${{ secrets.DOCKERHUB_REPOSITORY }}/${{ secrets.DOCKERHUB_APPNAME }} - naaga_prod_ec2_deploy: - needs: github_actions_setting - runs-on: naaga - - steps: - name: πŸ™ μ‰˜ 슀크립트 μ‹€ν–‰ 쀑 ... πŸ™ - run: | - cd /home/ubuntu/prod - sudo ./deploy_prod.sh + with: + host: ${{ secrets.SERVER_IP }} + username: ${{ secrets.SERVER_SSH_ID }} + key: ${{ secrets.SERVER_SSH_KEY }} + port: ${{ secrets.SERVER_SSH_PORT }} + script: | + cd /home/ubuntu/naaga/prod + sudo ./deploy.sh diff --git a/backend/src/main/java/com/now/naaga/NaagaApplication.java b/backend/src/main/java/com/now/naaga/NaagaApplication.java index cee0329da..6fb6611bf 100644 --- a/backend/src/main/java/com/now/naaga/NaagaApplication.java +++ b/backend/src/main/java/com/now/naaga/NaagaApplication.java @@ -11,5 +11,4 @@ public class NaagaApplication { public static void main(String[] args) { SpringApplication.run(NaagaApplication.class, args); } - }