Skip to content

0.2.13

0.2.13 #64

Workflow file for this run

name: Deployment
on:
push:
branches:
- master
env:
CURRENT_BRANCH: ${{ github.ref_name }}
GCR_HOST: us.gcr.io
GOOGLE_PROJECT_ID: babbage-private
GCR_IMAGE_NAME: todo
jobs:
build:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm run build
- uses: RafikFarhad/push-to-gcr-github-action@v4.1
with:
gcloud_service_key: ${{ secrets.DOCKER_REGISTRY_PUSH_KEY }}
registry: ${{ env.GCR_HOST }}
project_id: ${{ env.GOOGLE_PROJECT_ID }}
image_name: ${{ env.GCR_IMAGE_NAME }}
image_tag: ${{ env.CURRENT_BRANCH }}-${{ github.sha }}
- uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.gcp_credentials }}
- uses: google-github-actions/deploy-cloudrun@v0
with:
service: ${{ env.GCR_IMAGE_NAME }}-${{ env.CURRENT_BRANCH }}
image: "${{ env.GCR_HOST }}/${{ env.GOOGLE_PROJECT_ID }}/${{ env.GCR_IMAGE_NAME }}:${{ env.CURRENT_BRANCH }}-${{ github.sha }}"
timeout: 3540