From 4b0b46f39f4118ce18c28006e7ccec8cb4053607 Mon Sep 17 00:00:00 2001 From: digorgonzola <29941279+digorgonzola@users.noreply.github.com> Date: Mon, 11 Dec 2023 09:55:01 +1100 Subject: [PATCH] github workflows: pass relevant vars to tg --- .github/workflows/deploy-production.yml | 8 ++++---- .github/workflows/deploy-staging.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 8e447c0..5e05497 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -60,9 +60,9 @@ jobs: # get the image digest from the build job with optional override from vars context TF_VAR_image: ${{ vars.IMAGE || steps.set_image_digest.outputs.image_digest }} # set the parameter name variables - TF_VAR_alb_parameter_name: $ALB_PARAMETER_NAME + TF_VAR_alb_parameter_name: ${{ env.ALB_PARAMETER_NAME }} TF_VAR_ecr_parameter_name: ${{ vars.ECR_REPOSITORY }} - TF_VAR_rds_parameter_name: $RDS_PARAMETER_NAME + TF_VAR_rds_parameter_name: ${{ env.RDS_PARAMETER_NAME }} production_deploy_apply: runs-on: ubuntu-latest @@ -115,6 +115,6 @@ jobs: # get the image digest from the build job with optional override from vars context TF_VAR_image: ${{ vars.IMAGE || steps.set_image_digest.outputs.image_digest }} # set the parameter name variables - TF_VAR_alb_parameter_name: $ALB_PARAMETER_NAME + TF_VAR_alb_parameter_name: ${{ env.ALB_PARAMETER_NAME }} TF_VAR_ecr_parameter_name: ${{ vars.ECR_REPOSITORY }} - TF_VAR_rds_parameter_name: $RDS_PARAMETER_NAME + TF_VAR_rds_parameter_name: ${{ env.RDS_PARAMETER_NAME }} diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 1898723..8a0639f 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -105,9 +105,9 @@ jobs: # get the image digest from the build job with optional override from vars context TF_VAR_image: ${{ vars.IMAGE || needs.build_test_push.outputs.image_digest }} # set the parameter name variables - TF_VAR_alb_parameter_name: $ALB_PARAMETER_NAME + TF_VAR_alb_parameter_name: ${{ env.ALB_PARAMETER_NAME }} TF_VAR_ecr_parameter_name: ${{ vars.ECR_REPOSITORY }} - TF_VAR_rds_parameter_name: $RDS_PARAMETER_NAME + TF_VAR_rds_parameter_name: ${{ env.RDS_PARAMETER_NAME }} staging_deploy_apply: runs-on: ubuntu-latest @@ -148,9 +148,9 @@ jobs: # get the image digest from the build job with optional override from vars context TF_VAR_image: ${{ vars.IMAGE || needs.build_test_push.outputs.image_digest }} # set the parameter name variables - TF_VAR_alb_parameter_name: $ALB_PARAMETER_NAME + TF_VAR_alb_parameter_name: ${{ env.ALB_PARAMETER_NAME }} TF_VAR_ecr_parameter_name: ${{ vars.ECR_REPOSITORY }} - TF_VAR_rds_parameter_name: $RDS_PARAMETER_NAME + TF_VAR_rds_parameter_name: ${{ env.RDS_PARAMETER_NAME }} create_draft_release: name: Create Release