-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat]: 불필요한 파일 제거 및 블루 그린 무중단 배포 설정
- Loading branch information
Showing
4 changed files
with
3 additions
and
40 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 |
---|---|---|
|
@@ -57,9 +57,7 @@ jobs: | |
run: | | ||
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} | ||
docker build -t ${{ secrets.DOCKER_REPO }}/refit-spring . | ||
docker build -f dockerfile-nginx -t ${{ secrets.DOCKER_REPO }}/refit-nginx . | ||
docker push ${{ secrets.DOCKER_REPO }}/refit-spring | ||
docker push ${{ secrets.DOCKER_REPO }}/refit-nginx | ||
- name: Deploy | ||
uses: appleboy/[email protected] | ||
|
@@ -68,8 +66,4 @@ jobs: | |
username: ubuntu | ||
key: ${{ secrets.KEY }} | ||
script: | | ||
sudo docker rm -f $(docker ps -qa) | ||
sudo docker pull ${{ secrets.DOCKER_REPO }}/refit-spring | ||
sudo docker pull ${{ secrets.DOCKER_REPO }}/refit-nginx | ||
docker-compose up -d | ||
docker image prune -f | ||
./deploy.sh |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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