-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 972 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
- staging
- production
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
uses: alphagov/govuk-infrastructure/.github/workflows/build-and-push-multiarch-image.yml@main
with:
gitRef: ${{ inputs.gitRef || github.event.release.tag_name }}
permissions:
id-token: write
contents: read
packages: write