Skip to content

remove deployment gate #5

remove deployment gate

remove deployment gate #5

Workflow file for this run

name: Pipeline [Test - Build - Deploy]
on:
push:
branches:
# - main
- '**'
workflow_dispatch:
inputs:
environment:
description: Environment
type: choice
required: true
options:
- dev
- prod
- staging
default: 'dev'
docker_registry:
description: Docker registry
required: true
default: 'ghcr.io'
type: choice
options:
- 'ghcr.io'
- 'quay.io'
registry_org:
description: Docker registry organisation
required: true
default: 'ministryofjustice'
type: choice
options:
- 'ministryofjustice'
- 'hmpps'
additional_docker_tag:
description: Additional docker tag that can be used to specify stable tags
required: false
default: ''
type: string
push:
description: Push docker image to registry flag
required: true
default: true
type: boolean
docker_multiplatform:
description: docker multiplatform build or not
required: true
default: true
type: boolean
permissions:
contents: read
packages: write
jobs:
helm_lint:
name: helm lint
uses: ministryofjustice/hmpps-github-actions/.github/workflows/test_helm_lint.yml@main
secrets: inherit
with:
environment: ${{ inputs.environment || 'dev' }}
kotlin_validate:
name: Validate the kotlin
uses: ministryofjustice/hmpps-github-actions/.github/workflows/kotlin_validate.yml@main
secrets: inherit
create_app_version:
name: Create app version
needs:
- kotlin_validate
uses: ministryofjustice/hmpps-github-actions/.github/workflows/create_app_version.yml@main
build:
name: Build docker image from hmpps-github-actions
uses: ministryofjustice/hmpps-github-actions/.github/workflows/docker_build.yml@main
needs:
- create_app_version
with:
docker_registry: ${{ inputs.docker_registry || 'ghcr.io' }}
registry_org: ${{ inputs.registry_org || 'ministryofjustice' }}
additional_docker_tag: ${{ inputs.additional_docker_tag }}
push: ${{ inputs.push || true }}
docker_multiplatform: ${{ inputs.docker_multiplatform || true }}
app_version: ${{ needs.create_app_version.outputs.version }}
deploy_dev:
name: Deploy to dev environment
needs:
- create_app_version
- build
- helm_lint
uses: ministryofjustice/hmpps-github-actions/.github/workflows/deploy_env.yml@main
secrets: inherit
with:
environment: 'dev'
app_version: '${{ needs.create_app_version.outputs.version }}'