Skip to content

Commit

Permalink
✨ CI/CD 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Yong99 committed Apr 6, 2024
1 parent 89d204d commit 9be48b1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ jobs:

- name: Checkout code
uses: actions/checkout@v2
working-directory: ${{ env.working-directory }}


- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: 17 # 원하는 Java 버전으로 변경
distribution: 'temurin'
working-directory: ${{ env.working-directory }}

- uses: actions/checkout@v3
working-directory: ${{ env.working-directory }}

- run: touch ./backend/moment/moment-server/auth/src/main/resources/application.properties
- run: echo "${{ secrets.AUTH_PROPERTIES }}" > ./backend/moment/moment-server/auth/src/main/resources/application.properties
Expand All @@ -44,22 +42,19 @@ jobs:

- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: ${{ env.working-directory }}


- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
build-root-directory: ${{ env.working-directory }}
build-root-directory: ./backend/moment/moment-server

- name: Deploy to Server
uses: actions/checkout@v3
working-directory: ${{ env.working-directory }}

- run: |
docker-compose up --build
working-directory: ${{ env.working-directory }}
# 서버에 애플리케이션 배포 스크립트 실행
# 예: scp, SSH, Docker, Kubernetes 등을 사용하여 배포
Expand Down

0 comments on commit 9be48b1

Please sign in to comment.