Skip to content

Commit

Permalink
[BSVR-27] 개발환경 CICD v.3 (#28)
Browse files Browse the repository at this point in the history
* feat: gitignore에 .env 추가

* feat: application-jpa sql init mode 항목 always->never

* feat: 개발환경 db 세팅 값을 cloud db for mysql로 변경

* feat: 개발환경 cicd 스크립트 작성

* feat: 개발용 main 브랜치 ci 스크립트 재작성

* fix: 트리거에서 개발서버 배포담당인 dev브랜치 제외

* fix: 개발환경 작업 스크립트 통합

* feat: 배포용 도커파일 추가
  • Loading branch information
pminsung12 authored Jul 16, 2024
1 parent 5f50d41 commit 6a42b1a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dev-cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
deploy:
needs: build-and-test
if: github.ref == 'refs/heads/dev' && github.event_name == 'push'

runs-on: ubuntu-latest

steps:
Expand Down
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 빌드 스테이지
FROM gradle:7.4-jdk17 AS build
WORKDIR /app
COPY . .
RUN ./gradlew build -x test

# 실행 스테이지
FROM openjdk:17-jdk-slim
WORKDIR /app
COPY --from=build /app/application/build/libs/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "app.jar"]

0 comments on commit 6a42b1a

Please sign in to comment.