mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-06 21:12:55 +00:00
neon-project-create: change default region for staging (#2951)
Change the default region for staging from `us-east-1` to `us-east-2` for project creation. Remove REGION_ID from `neon-branch-create` since we don't use it.
This commit is contained in:
committed by
GitHub
parent
f277140234
commit
fb633b16ac
@@ -29,11 +29,9 @@ runs:
|
||||
case "${ENVIRONMENT}" in
|
||||
dev)
|
||||
API_HOST=console.dev.neon.tech
|
||||
REGION_ID=${REGION_ID:-eu-west-1}
|
||||
;;
|
||||
staging)
|
||||
API_HOST=console.stage.neon.tech
|
||||
REGION_ID=${REGION_ID:-us-east-1}
|
||||
;;
|
||||
*)
|
||||
echo 2>&1 "Unknown environment=${ENVIRONMENT}. Allowed 'dev' or 'staging' only"
|
||||
@@ -42,10 +40,8 @@ runs:
|
||||
esac
|
||||
|
||||
echo "api_host=${API_HOST}" >> $GITHUB_OUTPUT
|
||||
echo "region_id=${REGION_ID}" >> $GITHUB_OUTPUT
|
||||
env:
|
||||
ENVIRONMENT: ${{ inputs.environment }}
|
||||
REGION_ID: ${{ inputs.region_id }}
|
||||
|
||||
- name: Create New Branch
|
||||
id: create-branch
|
||||
|
||||
@@ -33,7 +33,7 @@ runs:
|
||||
;;
|
||||
staging)
|
||||
API_HOST=console.stage.neon.tech
|
||||
REGION_ID=${REGION_ID:-us-east-1}
|
||||
REGION_ID=${REGION_ID:-us-east-2}
|
||||
;;
|
||||
*)
|
||||
echo 2>&1 "Unknown environment=${ENVIRONMENT}. Allowed 'dev' or 'staging' only"
|
||||
|
||||
Reference in New Issue
Block a user