fix(github-actions): deploy to gcp

This commit is contained in:
Thomas Frost 2024-07-19 10:51:28 -07:00
parent 1b91fc654e
commit 45ee152d17

View File

@ -4,24 +4,18 @@ on:
push: push:
branches: branches:
- main - main
workflow_dispatch:
jobs: jobs:
setup: deploy-to-gcp:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: develop
job_id:
runs-on: ubuntu-latest
environment: develop
needs: setup
permissions: permissions:
contents: 'read' contents: 'read'
id-token: 'write' id-token: 'write'
steps: steps:
- uses: 'actions/checkout@v4' - name: Checkout repository
uses: 'actions/checkout@v4'
- name: Authenticate with Google Cloud - name: Authenticate with Google Cloud
id: auth id: auth
@ -33,7 +27,8 @@ jobs:
create_credentials_file: true create_credentials_file: true
# https://github.com/marketplace/actions/deploy-to-cloud-run # https://github.com/marketplace/actions/deploy-to-cloud-run
- id: 'deploy' - name: Build and Deploy to Google CloudRun
id: 'deploy'
uses: 'google-github-actions/deploy-cloudrun@v2' uses: 'google-github-actions/deploy-cloudrun@v2'
with: with:
service: ${{ vars.APP_NAME }} service: ${{ vars.APP_NAME }}