Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Deploy reearth help dev #2

Deploy reearth help dev

Deploy reearth help dev #2

name: Deploy reearth help dev
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
environment: development
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/auth@v2
with:
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}
- uses: google-github-actions/setup-gcloud@v2
- name: Deploy to Cloud Run
run: |
gcloud run deploy reearth-help \
--image $IMAGE_NAME \
--region $GCP_REGION \
--platform managed \
--quiet
env:
GCP_REGION: ${{ vars.GCP_REGION }}
IMAGE_NAME: ${{ secrets.IMAGE_NAME_GAR }}:latest