Skip to content

Commit

Permalink
fix: setu network if no network exists
Browse files Browse the repository at this point in the history
  • Loading branch information
maxitect committed Nov 27, 2024
1 parent 77275cf commit 961690f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,14 @@ jobs:
docker build -t $REGION-docker.pkg.dev/$PROJECT_ID/$IMAGE/$IMAGE:$GITHUB_SHA .
docker push $REGION-docker.pkg.dev/$PROJECT_ID/$IMAGE/$IMAGE:$GITHUB_SHA
- name: Create Cloud Run Service
- name: Setup Network
run: |
# Create network
gcloud compute networks create pokelike-network --subnet-mode=auto || true
if ! gcloud compute networks describe pokelike-network; then
gcloud compute networks create pokelike-network --subnet-mode=auto
fi
- name: Create Cloud Run Service
run: |
# Deploy Postgres container
gcloud compute instances create-with-container postgres \
--container-image=postgres:latest \
Expand Down

0 comments on commit 961690f

Please sign in to comment.