Skip to content

Commit

Permalink
Merge pull request #22 from aodn/refactor_ssm
Browse files Browse the repository at this point in the history
github workflows: pass relevant vars to tg
  • Loading branch information
digorgonzola authored Dec 10, 2023
2 parents 61dd20c + 4b0b46f commit fa3950a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
8 changes: 4 additions & 4 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fa3950a

Please sign in to comment.