diff --git a/.github/workflows/jib-build-depoly.yml b/.github/workflows/jib-build-depoly.yml index 82cf501..ca95233 100644 --- a/.github/workflows/jib-build-depoly.yml +++ b/.github/workflows/jib-build-depoly.yml @@ -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 @@ -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 diff --git a/daepiro-app/src/main/java/com/numberone/backend/HelloController.java b/daepiro-app/src/main/java/com/numberone/backend/HelloController.java index a6811dd..db9f73e 100644 --- a/daepiro-app/src/main/java/com/numberone/backend/HelloController.java +++ b/daepiro-app/src/main/java/com/numberone/backend/HelloController.java @@ -7,7 +7,7 @@ @Slf4j @RestController public class HelloController { - @GetMapping("") + @GetMapping("/hello") public String hello() { return "Hello, NumberOne"; } diff --git a/daepiro-auth/src/main/java/com/numberone/backend/domain/config/SecurityConfig.java b/daepiro-auth/src/main/java/com/numberone/backend/domain/config/SecurityConfig.java index d1d69f5..6d88f87 100644 --- a/daepiro-auth/src/main/java/com/numberone/backend/domain/config/SecurityConfig.java +++ b/daepiro-auth/src/main/java/com/numberone/backend/domain/config/SecurityConfig.java @@ -53,7 +53,8 @@ public WebSecurityCustomizer webSecurityCustomizer() { "/swagger-resources/**", "/v3/api-docs/**", "/token/**", - "/notification/send-fcm"); + "/notification/send-fcm", + "/hello"); //.requestMatchers("/**"); // 인증 처리 하지 않을 케이스 } }