Skip to content

Commit aa6c775

Browse files
Add terraform init step to website publish
To get an output from terraform (i.e. webhook URL for deploying the website), we must make sure `terraform init` runs first. This retrieves all relevant information from the terraform state file on AWS.
1 parent 6b9ac90 commit aa6c775

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/migrate-data.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
cp -f ./result/config.tf.json ./config.tf.json
5151
- name: Migrate data to MongoDB
5252
run: |
53+
nix develop --impure --command plan
5354
export DAILP_GRAPHQL_URL=$(nix develop --impure --command output functions_url)/graphql
5455
nix run .#migrate-data -L
5556
- name: Publish website

.github/workflows/publish-website.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@ jobs:
5151
cp -f ./result/config.tf.json ./config.tf.json
5252
- name: Publish website
5353
run: |
54+
nix develop --impure --command plan
5455
curl -X POST -d {} "$(nix develop --impure --command output amplify_webhook)" -H "Content-Type:application/json"

0 commit comments

Comments
 (0)