-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from SunjooAI/yerim
[FIX] 설정파일 수정
- Loading branch information
Showing
2 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
run: chmod +x gradlew | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew build --no-daemon | ||
run: ./gradlew build | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v3 | ||
|
@@ -34,8 +34,8 @@ jobs: | |
|
||
- name: Build and push Docker image | ||
run: | | ||
docker build -t ${{ secrets.DOCKER_USERNAME }}/gateway . | ||
docker push ${{ secrets.DOCKER_USERNAME }}/gateway | ||
docker build -t ${{ secrets.DOCKER_USERNAME }}/gateway:latest . | ||
docker push ${{ secrets.DOCKER_USERNAME }}/gateway:latest | ||
- name: Deploy to EC2 | ||
uses: appleboy/[email protected] | ||
|
@@ -47,6 +47,8 @@ jobs: | |
script: | | ||
cd /home/ubuntu/sunjoo-server-gateway | ||
docker-compose down | ||
git pull origin main | ||
docker pull ${{ secrets.DOCKER_USERNAME }}/gateway:latest | ||
docker-compose up -d --build | ||
docker-compose build | ||
docker-compose up -d | ||
docker network connect eureka-network sunjoo-server-gateway-gateway-1 | ||
docker restart sunjoo-server-gateway-gateway-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters