Skip to content

Commit

Permalink
try against staging
Browse files Browse the repository at this point in the history
  • Loading branch information
lukqw committed Jul 11, 2024
1 parent 1fe5f96 commit 010df23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ephemeral/shutdown/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ runs:
response=$(curl -X DELETE \
-H "ls-api-key: ${LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key }}}" \
-H "content-type: application/json" \
https://api.localstack.cloud/v1/compute/instances/$previewName)
https://api.staging.aws.localstack.cloud/v1/compute/instances/$previewName)
if [[ "$response" != "{}" ]]; then
# In case the deletion fails, e.g. if the instance cannot be found, we raise a proper error on the platform
echo "Unable to delete preview environment. API response: $response"
Expand Down
2 changes: 1 addition & 1 deletion ephemeral/startup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ runs:
response=$(curl -X POST -d "{'env_vars': {'auto_load_pod': '${AUTO_LOAD_POD:-${{ inputs.auto-load-pod }}}', 'extension_auto_install': '${EXTENSION_AUTO_INSTALL:-${{ inputs.extension-auto-install }}}'}, 'instance_name': '${previewName}'}" \
-H "ls-api-key: ${LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key }}}" \
-H "content-type: application/json" \
https://api.localstack.cloud/v1/compute/instances/)
https://api.staging.aws.localstack.cloud/v1/compute/instances/)
endpointUrl=$(echo "$response" | jq -r .endpoint_url)
if [ "$endpointUrl" = "null" ] || [ "$endpointUrl" = "" ]; then
echo "Unable to create preview environment. API response: $response"
Expand Down

0 comments on commit 010df23

Please sign in to comment.