Skip to content

Commit

Permalink
hotfix: CI/CD 파이프라인 수정 (서버이전) (#590)
Browse files Browse the repository at this point in the history
* chore: 서브모듈 최신화

* chore: ci/cd 파이프라인 수정
  • Loading branch information
dooboocookie authored Nov 29, 2023
1 parent e27ac4d commit 7562189
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/backend_prod_merge_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,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
1 change: 0 additions & 1 deletion backend/src/main/java/com/now/naaga/NaagaApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ public class NaagaApplication {
public static void main(String[] args) {
SpringApplication.run(NaagaApplication.class, args);
}

}
2 changes: 1 addition & 1 deletion backend/src/main/resources/security

0 comments on commit 7562189

Please sign in to comment.