From 34cdcbdb621458a6409506c558b734af21bd33ff Mon Sep 17 00:00:00 2001 From: Seungrae Date: Sat, 2 Dec 2023 00:49:44 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=99=98=EA=B2=BD=EB=B3=80=EC=88=98=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EB=B6=80=EB=B6=84=20=EB=B3=80=EA=B2=BD=20?= =?UTF-8?q?(#65)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/click-service-cd.yml | 16 ++++++---------- .github/workflows/transfer-service-cd.yml | 6 ++---- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/click-service-cd.yml b/.github/workflows/click-service-cd.yml index e5aa07c..b3d30c7 100644 --- a/.github/workflows/click-service-cd.yml +++ b/.github/workflows/click-service-cd.yml @@ -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' @@ -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 diff --git a/.github/workflows/transfer-service-cd.yml b/.github/workflows/transfer-service-cd.yml index 2ee1cc2..0f04ca7 100644 --- a/.github/workflows/transfer-service-cd.yml +++ b/.github/workflows/transfer-service-cd.yml @@ -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'