Skip to content

Commit

Permalink
chore(ci): add prod environment
Browse files Browse the repository at this point in the history
  • Loading branch information
vmttn committed Apr 19, 2024
1 parent de1dc6f commit 594a590
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 \
Expand Down

0 comments on commit 594a590

Please sign in to comment.