Skip to content

PI-2908 Increase min score following chunk size change #50

PI-2908 Increase min score following chunk size change

PI-2908 Increase min score following chunk size change #50

Workflow file for this run

name: Pipeline [test -> build -> deploy]
on:
push:
branches:
- '**'
workflow_dispatch:
inputs:
additional_docker_tag:
description: Additional docker tag that can be used to specify stable or testing tags
required: false
default: ''
type: string
push:
description: Push docker image to registry flag
required: true
default: false
type: boolean
permissions:
contents: read
packages: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
helm_lint:
strategy:
matrix:
environments: ['dev', 'preprod', 'prod']
name: helm lint
uses: ministryofjustice/hmpps-github-actions/.github/workflows/test_helm_lint.yml@v2 # WORKFLOW VERSION
secrets: inherit
with:
environment: ${{ matrix.environments }}
kotlin_validate:
name: Validate the kotlin
uses: ./.github/workflows/kotlin_integration_tests.yml
secrets: inherit
docker_build:
if: ${{ github.ref == 'refs/heads/main' || inputs.push }}
name: Push image
uses: ./.github/workflows/jib-build.yml
needs: kotlin_validate
deploy_dev:
name: Deploy to the dev environment
if: github.ref == 'refs/heads/main'
needs:
- docker_build
- helm_lint
uses: ministryofjustice/hmpps-github-actions/.github/workflows/deploy_env.yml@v2 # WORKFLOW_VERSION
secrets: inherit
with:
environment: 'dev'
app_version: '${{ needs.docker_build.outputs.app_version }}'
deploy_preprod:
name: Deploy to the preprod environment
needs:
- docker_build
- helm_lint
uses: ministryofjustice/hmpps-github-actions/.github/workflows/deploy_env.yml@v2 # WORKFLOW_VERSION
secrets: inherit
with:
environment: 'preprod'
app_version: '${{ needs.docker_build.outputs.app_version }}'
deploy_prod:
name: Deploy to the prod environment
needs:
- docker_build
- helm_lint
- deploy_dev
- deploy_preprod
uses: ministryofjustice/hmpps-github-actions/.github/workflows/deploy_env.yml@v2 # WORKFLOW_VERSION
secrets: inherit
with:
environment: 'prod'
app_version: '${{ needs.docker_build.outputs.app_version }}'