Skip to content

Commit

Permalink
Feat(#98): apply blue green deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
versatile0010 committed Feb 23, 2024
1 parent a97e6a5 commit 248ba44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/jib-build-depoly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: NumberOne-Backend-JIB-BUILD-DEPLOY
# event trigger
on:
push:
branches: [ "dev", "dev-check", "feat/multi-module" ]
branches: [ "dev", "dev-check", "feat/deploy" ]

permissions: write-all

Expand Down Expand Up @@ -120,9 +120,9 @@ jobs:
key: ${{ secrets.EC2_PRIVATE_KEY }}
envs: GITHUB_SHA
script: |
sudo docker rm -f $(docker ps -qa)
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE }}:latest
docker-compose up -d
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE }}
sudo chmod 777 ./deploy.sh
./deploy.sh
docker image prune -f
## notify at Slack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@Slf4j
@RestController
public class HelloController {
@GetMapping("")
@GetMapping("/hello")
public String hello() {
return "Hello, NumberOne";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public WebSecurityCustomizer webSecurityCustomizer() {
"/swagger-resources/**",
"/v3/api-docs/**",
"/token/**",
"/notification/send-fcm");
"/notification/send-fcm",
"/hello");
//.requestMatchers("/**"); // 인증 처리 하지 않을 케이스
}
}

0 comments on commit 248ba44

Please sign in to comment.