Skip to content

deploy-server-nightly #79

deploy-server-nightly

deploy-server-nightly #79

name: deploy-server-nightly
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
env:
IMAGE: reearth/reearth:nightly
IMAGE_GCP: us.gcr.io/reearth-oss/reearth:nightly
GCP_REGION: us-central1
jobs:
deploy_test:
name: Deploy app to test env
runs-on: ubuntu-latest
if: github.event.repository.full_name == 'reearth/reearth'
steps:
- uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0
- name: Configure docker
run: gcloud auth configure-docker --quiet
- name: docker push
run: |
docker pull $IMAGE
docker tag $IMAGE $IMAGE_GCP
docker push $IMAGE_GCP
- name: Deploy to Cloud Run
run: |
gcloud run deploy reearth-backend \
--image $IMAGE_GCP \
--region $GCP_REGION \
--platform managed \
--quiet