Explorar o código

Feature/terraform deploy workflow (#1244)

* terraform_deploy_workflow -> add workflow for kafka-ui infra terraform deployment

* terraform_deploy_workflow -> fix comment

* terraform_deploy_workflow -> fix

* terraform_deploy_workflow add cd to tf script path for all steps

* terraform_deploy_workflow fix dollar sign when setting var

* terraform_deploy_workflow terraform cannot read from $GITHUB_ENV add explicit export
Ruslan Ibragimov %!s(int64=3) %!d(string=hai) anos
pai
achega
93ba61ddb9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      .github/workflows/terraform-deploy.yml

+ 2 - 2
.github/workflows/terraform-deploy.yml

@@ -47,8 +47,8 @@ jobs:
         id: plan
         id: plan
         run: |
         run: |
           cd $TF_DIR
           cd $TF_DIR
-          echo "TF_VAR_github_connector_access_token=${{ secrets.SOURCE_CONNECTOR_GITHUB_TOKEN }}" >> $GITHUB_ENV
-          # TODO:        echo "TF_VAR_repo_user_key=${{ secrets.KAKFA_UI_INFRA_TOKEN }}" >> $GITHUB_ENV
+          export TF_VAR_github_connector_access_token=${{ secrets.SOURCE_CONNECTOR_GITHUB_TOKEN }}
+          # TODO:        export TF_VAR_repo_user_key=${{ secrets.KAKFA_UI_INFRA_TOKEN }}
           # we add these two vars to the env since we use them in tf deployment
           # we add these two vars to the env since we use them in tf deployment
           # the TF_VAR_repo_user_key has to match the user from kafka-ui-infra repo (we create kubernetes secret there)
           # the TF_VAR_repo_user_key has to match the user from kafka-ui-infra repo (we create kubernetes secret there)
           # currently its azsafin, changing it to kafka-ui-infra in infra repo will be better (imho).
           # currently its azsafin, changing it to kafka-ui-infra in infra repo will be better (imho).