diff --git a/.github/workflows/backend_dev_merge_workflow.yml b/.github/workflows/backend_dev_merge_workflow.yml index 42e1a37b5..e30633f36 100644 --- a/.github/workflows/backend_dev_merge_workflow.yml +++ b/.github/workflows/backend_dev_merge_workflow.yml @@ -42,17 +42,18 @@ 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 + uses: appleboy/ssh-action@master + 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 sh ./deploy.sh