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
This commit is contained in:
Ruslan Ibragimov 2021-12-13 15:50:59 +03:00 committed by GitHub
parent 4cad34c0f5
commit 93ba61ddb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,8 +47,8 @@ jobs:
id: plan
run: |
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
# 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).