Skip to content

Deploy MAV-997_permission_restriction to sandbox-alpha #2428

Deploy MAV-997_permission_restriction to sandbox-alpha

Deploy MAV-997_permission_restriction to sandbox-alpha #2428

Workflow file for this run

name: Deploy
run-name: Deploy ${{ inputs.git_tag || github.ref_name }} to ${{ inputs.environment }}
concurrency:
group: deploy-${{ inputs.environment }}
on:
workflow_call:
inputs:
environment:
required: true
type: string
server_types:
required: true
type: string
workflow_dispatch:
inputs:
environment:
description: Deployment environment
required: true
type: choice
options:
- qa
- test
- preview
- training
- production
- sandbox-alpha
- sandbox-beta
server_types:
description: Server types to deploy
required: true
type: choice
options:
- all
- web
- good-job
default: all
git_ref_to_deploy:
description: The Git ref to deploy, or example, a tag, branch name or commit SHA (optional). Will use workflow ref if not provided.
type: string
jobs:
determine-git-sha:
runs-on: ubuntu-latest
outputs:
git-sha: ${{ steps.get-git-sha.outputs.git-sha }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref_to_deploy || github.sha }}
- name: Get git sha
id: get-git-sha
run: echo "git-sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
build-and-push-image:
needs: determine-git-sha
uses: ./.github/workflows/build-and-push-image.yml
with:
git-sha: ${{ needs.determine-git-sha.outputs.git-sha }}
deploy-infrastructure:
needs: [build-and-push-image, determine-git-sha]
uses: ./.github/workflows/deploy-infrastructure.yml

Check failure on line 63 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy

Invalid workflow file

The workflow is not valid. In .github/workflows/deploy.yml (Line: 63, Col: 11): Error from called workflow nhsuk/manage-vaccinations-in-schools/.github/workflows/deploy-infrastructure.yml@09b29032968f06aee19b759dd246259edf4d78bc (Line: 24, Col: 5): Unexpected value 'environment' In .github/workflows/deploy.yml (Line: 63, Col: 11): Error from called workflow nhsuk/manage-vaccinations-in-schools/.github/workflows/deploy-infrastructure.yml@09b29032968f06aee19b759dd246259edf4d78bc (Line: 28, Col: 5): Unexpected value 'image_tag'
with:
environment: ${{ inputs.environment }}
image_tag: ${{ needs.determine-git-sha.outputs.git-sha }}
deploy-application:
needs: deploy-infrastructure
uses: ./.github/workflows/deploy-application.yml
with:
environment: ${{ inputs.environment }}
server_types: ${{ inputs.server_types }}
git_sha_to_deploy: ${{ needs.determine-git-sha.outputs.git-sha }}