Skip to content

Google Run region has been changed to europe-west1 #6

Google Run region has been changed to europe-west1

Google Run region has been changed to europe-west1 #6

name: cloudrun-deploy-production
on:
push:
branches:
- main
jobs:
build:
name: 'Cloud Run Production Deployment'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v4
- name: 'Configure authentication to GCP'
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCP_SERVICE_ACCOUNT_SECRET }}'
project_id: ${{ secrets.GCP_PROJECT_ID }}
- name: 'Set up GCP SDK'
uses: google-github-actions/setup-gcloud@v2
- name: 'Configure Docker'
run: make gcloud-docker-init
- name: 'Build'
env:
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
ENVIRONMENT: 'production'
run: make gcloud-docker-build
- name: 'Push'
env:
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
ENVIRONMENT: 'production'
run: make gcloud-docker-push
- name: 'Deploy'
env:
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
ENVIRONMENT: 'production'
run: make gcloud-run-deploy