Skip to content

filter

filter #40

Workflow file for this run

name: Deploy
on:
push:
branches:
- gcp
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: 'actions/checkout@v4'
- name: Prepare environment
env:
Dotenv: ${{ secrets.DOTENV_ME }}
run: |
echo "DOTENV_ME=$Dotenv" > .env.me
yarn
yarn dotenv-vault pull
yarn dotenv-vault pull production
yarn ts-node scripts/merge-envs.ts
rm -rf .env.me
- uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS_JSON }}'
- id: 'deploy'
uses: 'google-github-actions/deploy-cloudrun@v1'
with:
service: 'crew'
region: 'europe-west3'
source: ./
env_vars_file: .env
- name: 'Use output'
run: 'curl "${{ steps.deploy.outputs.url }}"'