Skip to content

Deploy update-deployment to integration #15

Deploy update-deployment to integration

Deploy update-deployment to integration #15

Workflow file for this run

name: Deploy
run-name: Deploy ${{ inputs.gitRef || github.event.release.tag_name }} to ${{ inputs.environment || 'integration' }}
on:
workflow_dispatch:
inputs:
gitRef:
description: 'Commit, tag or branch name to deploy'
required: true
type: string
environment:
description: 'Environment to deploy to'
required: true
type: choice
options:
- integration
default: 'integration'
release:
types: [released]
jobs:
build-and-publish-image:
if: github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, 'v')
name: Build and publish image for ${{ inputs.environment || 'integration' }}
uses: alphagov/govuk-infrastructure/.github/workflows/build-and-push-image.yml@additional-image-tag-or-tags
with:
gitRef: ${{ inputs.gitRef || github.event.release.tag_name }}
additionalImageTags: deployed-to-${{ inputs.environment || 'integration' }}
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_GOVUK_ECR_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_GOVUK_ECR_SECRET_ACCESS_KEY }}