This repository has been archived by the owner on Jul 4, 2024. It is now read-only.
test #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy dev | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- add-ci | |
env: | |
IMAGE_NAME_GAR: asia-northeast1-docker.pkg.dev/reearth-development/eukarya/notion-proxy | |
IMAGE_NAME_PLATEAU: asia-northeast1-docker.pkg.dev/reearth-plateau-dev/reearth/reearth-cloud | |
GCP_WORKLOAD_IDENTITY_PROVIDER: projects/723082692741/locations/global/workloadIdentityPools/github-oidc-pool/providers/github-provider | |
GCP_SERVICE_ACCOUNT: reearth-dev-github-oidc@reearth-development.iam.gserviceaccount.com | |
GCP_REGION: asia-northeast1 | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
packages: read | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: google-github-actions/auth@v2 | |
with: | |
workload_identity_provider: ${{ env.GCP_WORKLOAD_IDENTITY_PROVIDER }} | |
service_account: ${{ env.GCP_SERVICE_ACCOUNT }} | |
- name: Set up Cloud SDK | |
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: | |
IMAGE_NAME: ${{ env.IMAGE_NAME_GAR }}:latest |