Skip to content

Commit

Permalink
feat: add GHA cloudrun.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbrig authored Sep 30, 2024
1 parent fb89ca8 commit 361b43d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/cloudrun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy to Google Cloud Run

on:
push:
branches:
- main

env:
PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}

jobs:
build-deploy:
name: Build and Deploy
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Authenticate with Google Cloud
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'

- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2

- name: Deploy to Cloud Run
run: |
gcloud run deploy bastienlaw.com \
--region useast1 \
--source .\app\ \
--allow-unauthenticated

1 comment on commit 361b43d

@vercel
Copy link

@vercel vercel bot commented on 361b43d Sep 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.