Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Update build-test-and-deploy.yml #27

Update build-test-and-deploy.yml

Update build-test-and-deploy.yml #27

name: Pipeline
on:
push:
branches:
- main
workflow_dispatch:
inputs:
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: false
type: boolean
channel_id:
description: Slack channel id
required: true
default: 'NO_SLACK'
type: string
permissions:
contents: read
packages: write
jobs:
create_app_version:
outputs:
- version: ${{ steps.create_app_version.outputs.version }}

Check failure on line 55 in .github/workflows/build-test-and-deploy.yml

View workflow run for this annotation

GitHub Actions / Pipeline

Invalid workflow file

The workflow is not valid. .github/workflows/build-test-and-deploy.yml (Line: 55, Col: 7): A sequence was not expected .github/workflows/build-test-and-deploy.yml (Line: 54, Col: 5): Required property is missing: runs-on
steps:
- name: create_app_version
id: create_app_version
uses: ministryofjustice/hmpps-github-actions/.github/actions/create_app_version@move_create_app_version_in_action
docker_build:
name: Build docker image from hmpps-github-actions
needs: [ create_app_version ]
uses: ministryofjustice/hmpps-github-actions/.github/workflows/docker_build.yml@main
secrets: inherit
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 || false }}
app_version: ${{ needs.create_app_version.outputs.version }}
deploy_env:
name: Deploy
needs:
- create_app_version
- docker_build
uses: ministryofjustice/hmpps-github-actions/.github/workflows/deploy_env.yml@main
secrets: inherit
with:
environment: 'dev'
app_version: '${{ needs.create_app_version.outputs.version }}'