Skip to content

Commit 00d23e1

Browse files
committed
temporarily point action to staging
1 parent 2899362 commit 00d23e1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/ephemeral.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ jobs:
5858
"state-action": "stop"
5959
}
6060
env:
61-
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
61+
LOCALSTACK_API_KEY: ${{ secrets.STAGING_LOCALSTACK_API_KEY }}
6262
GH_ACTION_VERSION: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}

ephemeral/startup/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,21 @@ runs:
7474
list_response=$(curl -X GET \
7575
-H "ls-api-key: ${LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key }}}" \
7676
-H "content-type: application/json" \
77-
https://api.localstack.cloud/v1/compute/instances)
77+
https://api.staging.aws.localstack.cloud/v1/compute/instances)
7878
7979
instance_exists=$(echo "$list_response" | jq --arg NAME "$previewName" '.[] | select(.instance_name == $NAME)')
8080
8181
if [ -n "$instance_exists" ]; then
8282
del_response=$(curl -X DELETE \
8383
-H "ls-api-key: ${LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key }}}" \
8484
-H "content-type: application/json" \
85-
https://api.localstack.cloud/v1/compute/instances/$previewName)
85+
https://api.staging.aws.localstack.cloud/v1/compute/instances/$previewName)
8686
fi
8787
8888
response=$(curl -X POST -d "{\"instance_name\": \"${previewName}\", \"lifetime\": ${lifetime} ,\"env_vars\": {\"AUTO_LOAD_POD\": \"${autoLoadPod}\", \"EXTENSION_AUTO_INSTALL\": \"${extensionAutoInstall}\"}}"\
8989
-H "ls-api-key: ${LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key }}}" \
9090
-H "content-type: application/json" \
91-
https://api.localstack.cloud/v1/compute/instances)
91+
https://api.staging.aws.localstack.cloud/v1/compute/instances)
9292
endpointUrl=$(echo "$response" | jq -r .endpoint_url)
9393
if [ "$endpointUrl" = "null" ] || [ "$endpointUrl" = "" ]; then
9494
echo "Unable to create preview environment. API response: $response"
@@ -118,6 +118,6 @@ runs:
118118
log_response=$(curl -X GET \
119119
-H "ls-api-key: ${LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key }}}" \
120120
-H "content-type: application/json" \
121-
https://api.localstack.cloud/v1/compute/instances/$previewName/logs)
121+
https://api.staging.aws.localstack.cloud/v1/compute/instances/$previewName/logs)
122122
123123
echo "$log_response" | jq -r '.[].content'

0 commit comments

Comments
 (0)