Skip to content

Commit

Permalink
fix: 환경변수 설정 부분 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Seungpang committed Dec 1, 2023
1 parent f2cb794 commit cc8e550
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/click-service-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,20 @@ jobs:
uses: actions/checkout@v3

- name: Set Kubernetes Yaml
uses: microsoft/variable-substitution@v1
with:
files: ./click-service/resources.yaml
run : |
envsubst < ./resources.yaml > ./resources.yaml
env:
image: ${{env.REGION}}-docker.pkg.dev/${{env.PROJECT_ID}}/${{env.DOCKER_REPO}}/${{env.WORKSTATION_IMAGE}}
spec.template.spec.containers.image: ${{env.image}}
spec.template.spec.containers.image: ${{env.REGION}}-docker.pkg.dev/${{env.PROJECT_ID}}/${{env.DOCKER_REPO}}/${{env.WORKSTATION_IMAGE}}

- name: Set Application Yml
uses: microsoft/variable-substitution@v1
with:
files: ./src/main/resources/application-prod.yml
run : |
envsubst < ./src/main/resources/application-prod.yml > ./src/main/resources/application-prod.yml
env:
spring.data.redis.host: ${{secrets.REDIS_HOST}}
spring.data.redis.port: ${{secrets.REDIS_PORT}}
spring.datasource.url: ${{secrets.DB_URL}}
spring.datasource.username: ${{secrets.DB_USERNAME}}
spring.datasource.password: ${{secrets.DB_PASSWORD}}
spec.template.spec.containers.image: ${{env.image}}

- name: Set up google auth
id: 'auth'
Expand All @@ -61,7 +57,7 @@ jobs:
- name: Set up Java version
uses: actions/setup-java@v1
with:
java-version: '17'
java-version: '17'

- name: Run tests
run: ../gradlew test
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/transfer-service-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,14 @@ jobs:
uses: actions/checkout@v3

- name: Set Application Yml
uses: microsoft/variable-substitution@v1
with:
files: ./transfer-service/src/main/resources/application-prod.yml
run : |
envsubst < ./src/main/resources/application-prod.yml > ./src/main/resources/application-prod.yml
env:
spring.data.redis.host: ${{secrets.REDIS_HOST}}
spring.data.redis.port: ${{secrets.REDIS_PORT}}
spring.datasource.url: ${{secrets.DB_URL}}
spring.datasource.username: ${{secrets.DB_USERNAME}}
spring.datasource.password: ${{secrets.DB_PASSWORD}}
spec.template.spec.containers.image: ${{env.image}}

- name: Set up google auth
id: 'auth'
Expand Down

0 comments on commit cc8e550

Please sign in to comment.