From a64c8116d77575a61b2fd3a39cb8c3c1f2c3c76b Mon Sep 17 00:00:00 2001 From: Jona Date: Wed, 25 Oct 2023 22:37:15 -0400 Subject: [PATCH] Typo! and extend yaml changes to other stacks --- .github/workflows/test_and_deploy.yml | 32 +++++++++++++++++++ .../cloud_function_ais_analysis/queuer.py | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 0d995bd0..bac7d3dd 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -227,6 +227,22 @@ jobs: command: up stack-name: staging + # Copy shared database_client.py files + - name: Copy Shared File + run: | + mkdir -p cerulean_cloud/cloud_function_ais_analysis/cerulean_cloud/ + cp cerulean_cloud/database_client.py cerulean_cloud/cloud_function_ais_analysis/cerulean_cloud/database_client.py + cp cerulean_cloud/database_schema.py cerulean_cloud/cloud_function_ais_analysis/cerulean_cloud/database_schema.py + cp cerulean_cloud/__init__.py cerulean_cloud/cloud_function_ais_analysis/cerulean_cloud/__init__.py + + - uses: pulumi/actions@v3 + id: pulumi-refresh + env: + PULUMI_CONFIG_PASSPHRASE: "staging" + with: + command: refresh + stack-name: staging + - uses: pulumi/actions@v3 id: pulumi with: @@ -283,6 +299,22 @@ jobs: command: up stack-name: production + # Copy shared database_client.py files + - name: Copy Shared File + run: | + mkdir -p cerulean_cloud/cloud_function_ais_analysis/cerulean_cloud/ + cp cerulean_cloud/database_client.py cerulean_cloud/cloud_function_ais_analysis/cerulean_cloud/database_client.py + cp cerulean_cloud/database_schema.py cerulean_cloud/cloud_function_ais_analysis/cerulean_cloud/database_schema.py + cp cerulean_cloud/__init__.py cerulean_cloud/cloud_function_ais_analysis/cerulean_cloud/__init__.py + + - uses: pulumi/actions@v3 + id: pulumi-refresh + env: + PULUMI_CONFIG_PASSPHRASE: "production" + with: + command: refresh + stack-name: production + - uses: pulumi/actions@v3 id: pulumi with: diff --git a/cerulean_cloud/cloud_function_ais_analysis/queuer.py b/cerulean_cloud/cloud_function_ais_analysis/queuer.py index 84b4ec84..392c0185 100644 --- a/cerulean_cloud/cloud_function_ais_analysis/queuer.py +++ b/cerulean_cloud/cloud_function_ais_analysis/queuer.py @@ -38,7 +38,7 @@ def add_to_aaa_queue(scene_id): parent = client.queue_path(project, location, queue) # Construct the request body. - payload = {"sceneid": scene_id, "dry_run": dry_run} + payload = {"scene_id": scene_id, "dry_run": dry_run} task = { "http_request": { # Specify the type of request.