Skip to content

Commit

Permalink
docs: git actions yml 파일 변경
Browse files Browse the repository at this point in the history
- 브랜치 별로 application.yml 파일 다르게 설정
  • Loading branch information
hyeonjaez committed Sep 17, 2024
1 parent 2a492ec commit 97606e8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Docker Image CI

on:
push:
branches: [ "main", "dev" ]
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "dev" ]
branches: [ "main", "develop" ]

jobs:
build:
Expand Down Expand Up @@ -33,8 +33,13 @@ jobs:
# echo "${{ secrets.GATHERING_CATEGORY }}" > ./src/main/resources/gathering_category.sql
# echo "${{ secrets.ZONE_CATEGORY }}" > ./src/main/resources/zone_category.sql

- name: 테스트 및 빌드하기
run: ./gradlew clean build
- name: 테스트 및 빌드하기 (main 브랜치)
if: github.ref == 'refs/heads/main'
run: ./gradlew clean build --args='--spring.profiles.active=prod'

- name: 테스트 및 빌드하기 (develop 브랜치)
if: github.ref == 'refs/heads/develop'
run: ./gradlew clean build --args='--spring.profiles.active=dev'

- name: 빌드된 파일 이름 변경
run: mv ./build/libs/*SNAPSHOT.jar ./project.jar
Expand Down

0 comments on commit 97606e8

Please sign in to comment.