Skip to content

Deploy 1.10.0 to Prod #64

Deploy 1.10.0 to Prod

Deploy 1.10.0 to Prod #64

Workflow file for this run

name: 'Deploy'
run-name: 'Deploy ${{ inputs.tag }} to ${{ inputs.environment }}'
on:
workflow_call:
inputs:
environment:
description: 'Environment'
type: string
required: true
tag:
description: 'Docker image tag'
type: string
required: true
secrets:
GCP_CREDENTIALS_DEPLOY:
required: true
workflow_dispatch:
inputs:
environment:
description: 'Environment'
type: environment
required: true
tag:
description: 'Docker image tag'
type: string
required: true
default: 'latest'
jobs:
deploy:
runs-on: ubuntu-22.04
environment: ${{ inputs.environment }}
steps:
- name: Authenticate with Google Cloud
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS_DEPLOY }}'
- name: Deploy image
uses: google-github-actions/deploy-cloudrun@v2
with:
service: schemes
image: europe-west1-docker.pkg.dev/dft-schemes-common/docker/schemes:${{ inputs.tag }}
region: europe-west1