Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/pgdb-create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
- name: Deploy PG Flexible Server
run: |
echo "Generate Random PostgreSQL Server Name"
PGDB_NAME="pg-rest-api-test-$RANDOM"
PGDB_NAME="pg-rest-api-westeurope"

echo "Get Runner Public IP"
IP=$(curl -s https://ifconfig.me)
# echo "Get Runner Public IP"
# IP=$(curl -s https://ifconfig.me)

echo "Create PostgreSQL Flexible Server"
az postgres flexible-server create \
Expand All @@ -44,16 +44,16 @@ jobs:
--tier Burstable \
--sku-name Standard_B1ms \
--storage-size 32 \
--version 16 \
--public-access 13.82.232.186
--version 16
# --public-access 13.82.232.186

echo "Add Firewall Rule"
az postgres flexible-server firewall-rule create \
--resource-group $RESOURCE_GROUP \
--name $PGDB_NAME \
--rule-name github-temp \
--start-ip-address $IP \
--end-ip-address $IP
# echo "Add Firewall Rule"
# az postgres flexible-server firewall-rule create \
# --resource-group $RESOURCE_GROUP \
# --name $PGDB_NAME \
# --rule-name github-temp \
# --start-ip-address $IP \
# --end-ip-address $IP

echo "Check PostgreSQL server status"
az postgres flexible-server show \
Expand Down