-
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.
[CHORE] 운영 서버 github actions 테스트 (#151)
* [CHORE] 운영 서버 workflow 작성 및 개발 서버 workflow 파일 이름 변경 (#145) * rename: docker-deploy.yml -> dev-deploy.yml * chore: 운영 환경 workflow 파일 작성 * [FEAT] 로그아웃 HTTP method 변경 (#150) * feat: 로그아웃 비즈니스 예외 구현 * refactor: 로그아웃 method 변경 GET에서 POST로 변경 * config: 프론트 URL 변경 --------- Co-authored-by: 강명덕 <[email protected]>
- Loading branch information
1 parent
aec89d5
commit 88d4410
Showing
6 changed files
with
64 additions
and
4 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Prod CI/CD | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ "production" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'corretto' | ||
|
||
- name: Build with Gradle | ||
run: | | ||
chmod +x ./gradlew | ||
./gradlew clean build -x test | ||
- name: Build the Docker image | ||
run: | | ||
docker login -u ${{ secrets.PROD_DOCKER_USERNAME }} -p ${{ secrets.PROD_DOCKER_PASSWORD }} | ||
docker build -f Dockerfile -t ${{ secrets.PROD_DOCKER_REPO }} . | ||
docker push ${{ secrets.PROD_DOCKER_REPO }} | ||
- name: Deploy to server | ||
uses: appleboy/ssh-action@master | ||
id: deploy | ||
with: | ||
host: ${{ secrets.PROD_HOST }} | ||
username: ${{ secrets.PROD_USERNAME }} | ||
key: ${{ secrets.PROD_KEY }} | ||
envs: GITHUB_SHA | ||
script: | | ||
cd ./buddies | ||
bash deploy.sh |
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
13 changes: 13 additions & 0 deletions
13
src/main/java/econo/buddybridge/auth/exception/AlreadyLogoutException.java
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package econo.buddybridge.auth.exception; | ||
|
||
import econo.buddybridge.common.exception.BusinessException; | ||
|
||
public class AlreadyLogoutException extends BusinessException { | ||
|
||
public static BusinessException EXCEPTION = new AlreadyLogoutException(); | ||
|
||
public AlreadyLogoutException() { | ||
super(AuthErrorCode.ALREADY_LOGOUT); | ||
} | ||
|
||
} |
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
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