공부
[github] action jobs.env.SPRING_PROFILES_ACTIVE: tests (+ gradle)
승가비
2023. 12. 19. 15:48
728x90
jobs:
build_and_test:
name: Build and test
runs-on: ubuntu-latest
permissions:
security-events: write
env:
SPRING_PROFILES_ACTIVE: githubaction
Gradle로 특정 Profile이 active되게 test 돌리는 방법
실제 운영을 하다보면 Profile이 local, development, production 처럼 환경에 따라 달리 설정하게 되는데, test를 돌릴 때 특정 profile의 정보를 읽어들어 build되게 하려면 아래 명령어로 하면 된다. > SPRING_PRO
pikanpie.wordpress.com
728x90