Skip to content

Deploy latest to Dev - browse #1

Deploy latest to Dev - browse

Deploy latest to Dev - browse #1

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
permissions:
contents: read
env:
IMAGE_PROJECT: dft-rlg-schemes-gis-dev
IMAGE_LOCATION: europe-west1
IMAGE_REPOSITORY_ID: docker
IMAGE_NAME: plan
jobs:
deploy:
runs-on: ubuntu-24.04
environment: ${{ inputs.environment }}
steps:
- name: Authenticate with Google Cloud
uses: google-github-actions/auth@v3
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS_DEPLOY }}'
- name: Deploy image
uses: google-github-actions/deploy-cloudrun@v3
with:
service: ${{ vars.SERVICE_NAME }}
image: ${{ env.IMAGE_LOCATION }}-docker.pkg.dev/${{ env.IMAGE_PROJECT }}/${{ env.IMAGE_REPOSITORY_ID }}/${{ env.IMAGE_NAME }}:${{ inputs.tag }}
region: ${{ vars.SERVICE_LOCATION }}