Skip to content

fix: forgot to copy over the tsconfig file - dooooh! #8

fix: forgot to copy over the tsconfig file - dooooh!

fix: forgot to copy over the tsconfig file - dooooh! #8

name: "[BACKEND] Deploy Cloud Run"
on:
push:
branches: [main]
paths:
- backend/**
workflow_dispatch:
defaults:
run:
working-directory: backend
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup GCP Auth
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
- name: Setup Google Cloud
uses: google-github-actions/setup-gcloud@v1
with:
version: latest
project_id: kg1-prod
install_components: beta
#- name: Deploy to GCP Cloud Run
# uses: google-github-actions/deploy-cloudrun@v1
# with:
# service: kg1-backend
# source: .
# region: europe-west1
#- name: "Deployed URL"
# run: 'curl "${{ steps.deploy.outputs.url }}"'
- name: "GCP Build Container"
run: gcloud builds submit --tag eu.gcr.io/kg1-prod/kg1-backend
- name: "GCP Build Container"
run: |
gcloud run deploy kg1-backend \
--image eu.gcr.io/kg1-prod/kg1-backend \
--project kg1-prod \
--region europe-west1