Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Add GHA for deployment #24

Open
jimbrig opened this issue Sep 30, 2024 · 0 comments
Open

[Feature]: Add GHA for deployment #24

jimbrig opened this issue Sep 30, 2024 · 0 comments
Assignees
Labels
config Configuration Management

Comments

@jimbrig
Copy link
Member

jimbrig commented Sep 30, 2024

See https://github.com/noclocks/client-bastienlaw/issues/14

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
@jimbrig jimbrig added the config Configuration Management label Sep 30, 2024
@jimbrig jimbrig self-assigned this Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config Configuration Management
Projects
None yet
Development

No branches or pull requests

1 participant