Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

v0.2.4

v0.2.4 #7

Workflow file for this run

# This Workflow builds a docker image using the production Dockerfile and deploys it to Google Cloud Run.
# It will only run if the repo is dpgraham-com/dpgraham-client and triggered by a published release.
name: Deploy to Production
on:
release:
types: [ published ]
jobs:
build_gcp_image:
name: Build Image for Production
if: github.repository == 'dpgraham-com/dpgraham-client'
permissions:
id-token: write
contents: read
uses: ./.github/workflows/build-gcp-image.yaml
with:
environment: 'production'
secrets: inherit
deploy_to_cloud_run:
name: Deploy to Cloud Run
if: github.repository == 'dpgraham-com/dpgraham-client'
permissions:
id-token: write
contents: read
uses: ./.github/workflows/cloud-run-deploy.yaml
needs: build_gcp_image
with:
environment: 'production'
version: ${{ needs.build_gcp_image.outputs.version }}
service: 'client'
secrets: inherit
build_ghcr_image:
name: Build Image for GHCR
uses: ./.github/workflows/build-ghcr-image.yaml
secrets: inherit
with:
environment: 'production'