Skip to content

Deploy 1.5.1 to Test #47

Deploy 1.5.1 to Test

Deploy 1.5.1 to Test #47

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-latest
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