Skip to content

Commit

Permalink
chore: ci/cd 파이프라인 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dooboocookie committed Nov 29, 2023
1 parent 00425ab commit 4c9b5f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
18 changes: 9 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,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
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);
}

}

0 comments on commit 4c9b5f6

Please sign in to comment.