diff --git a/.github/workflows/image_creation.yml b/.github/workflows/image_creation.yml index 222d889..6dfca26 100644 --- a/.github/workflows/image_creation.yml +++ b/.github/workflows/image_creation.yml @@ -58,7 +58,7 @@ jobs: USERNAME: ${{ vars.USERNAME }} TAG_VERSION: ${{ github.ref_name }} NATS_SERVICE_URL: "${{ vars.NATS_SERVICE_URL }}" - ENV: "production" + ENV: "${{ vars.ENVIRONMENT }}" APPLICATION_PORT: "${{ vars.APPLICATION_PORT }}" DATA_SOURCE_URL: "${{ vars.DATA_SOURCE_URL }}" steps: @@ -99,7 +99,7 @@ jobs: - name: scale down deployment continue-on-error: true - run: kubectl scale deployment ${{ steps.repo-url.outputs.repoName }}-grpc --replicas=0 + run: kubectl scale deployment ${{ steps.repo-url.outputs.repoName }} --replicas=0 - name: scale up deployment - run: kubectl scale deployment ${{ steps.repo-url.outputs.repoName }}-grpc --replicas=1 + run: kubectl scale deployment ${{ steps.repo-url.outputs.repoName }} --replicas=1 diff --git a/k8s/deployment.yml.template b/k8s/deployment.yml.template index c8d17d2..71f5864 100644 --- a/k8s/deployment.yml.template +++ b/k8s/deployment.yml.template @@ -20,7 +20,7 @@ spec: image: $IMAGE env: - name: ENV - value: "$ENVIRONMET" + value: "$ENVIRONMENT" - name: NATS_SERVICE_URL value: "$NATS_SERVICE_URL" - name: DATA_SOURCE_URL