Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci/179 : build to bootJar #188

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: chmod +x ./gradlew

- name: Gradle로 빌드
run: ./gradlew build -x test -Pprofile=dev
run: ./gradlew bootJar -x test -Pprofile=dev

- name: 빌드 아티팩트 업로드
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -102,4 +102,4 @@ jobs:
docker rm dailyphrase-dev-api || true

# 새로운 Docker 컨테이너 실행
docker run -d --name dailyphrase-dev-api -p 80:8080 ${{ secrets.DEV_AWS_ECR_REPOSITORY_URL }}:${{ github.sha }}
docker run -d --name dailyphrase-dev-api -e SPRING_PROFILES_ACTIVE=dev -p 80:8080 ${{ secrets.DEV_AWS_ECR_REPOSITORY_URL }}:${{ github.sha }}
4 changes: 2 additions & 2 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: chmod +x ./gradlew

- name: Build with Gradle
run: ./gradlew build -x test -Pprofile=prod
run: ./gradlew bootJar -x test -Pprofile=prod

- name: Upload build artifacts
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -102,4 +102,4 @@ jobs:
docker rm dailyphrase-prod-api || true

# 새로운 Docker 컨테이너 실행
docker run -d --name dailyphrase-prod-api -p 80:8080 ${{ secrets.AWS_ECR_REPOSITORY_URL }}:${{ github.sha }}
docker run -d --name dailyphrase-prod-api -e SPRING_PROFILES_ACTIVE=prod -p 80:8080 ${{ secrets.AWS_ECR_REPOSITORY_URL }}:${{ github.sha }}
Loading