mirror of
https://github.com/vercel/commerce.git
synced 2025-05-10 19:57:51 +00:00
fix(github-actions): deploy to gcp
This commit is contained in:
parent
1b91fc654e
commit
45ee152d17
15
.github/workflows/develop.deploy-functions.yml
vendored
15
.github/workflows/develop.deploy-functions.yml
vendored
@ -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 }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user