From 594a590584de4685c09b3f61d51918478a794761 Mon Sep 17 00:00:00 2001 From: Valentin Matton Date: Fri, 19 Apr 2024 14:33:30 +0200 Subject: [PATCH] chore(ci): add prod environment --- .github/workflows/build.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4c677b9c5..1e7e484bd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -90,16 +90,18 @@ jobs: deploy: needs: build - runs-on: ubuntu-20.04 - environment: staging + runs-on: ubuntu-latest - env: - ENV: ${{ vars.ENVIRONMENT }} # used in this workflow + strategy: + matrix: + environment: [prod] # TODO: add staging - # used by terraform cli + environment: ${{ matrix.environment }} + + env: + ENV: ${{ vars.ENVIRONMENT }} AWS_ACCESS_KEY_ID: ${{ vars.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - TF_VARS: ${{ secrets.TF_VARS }} defaults: @@ -122,6 +124,9 @@ jobs: run: | echo "${TF_VARS}" | jq --raw-output 'to_entries | map("TF_VAR_\(.key)=\(.value // "")") | .[]' >> "${GITHUB_ENV}" + echo "${TF_VAR_airflow__core__fernet_key}" + env | sort | grep TF_VAR_ + - name: tf init run: | terraform init \