Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix: CI/CD 파이프라인 수정 (서버이전) #590

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading