File tree 2 files changed +20
-6
lines changed
2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 19
19
- staging
20
20
- production
21
21
default : ' integration'
22
- workflow_run :
23
- workflows : [CI]
24
- types : [completed]
25
- branches : [main]
22
+ release :
23
+ types : [released]
26
24
27
25
jobs :
28
26
build-and-publish-image :
29
- if : github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
27
+ if : github.event_name == 'workflow_dispatch' || startsWith( github.ref_name, 'v')
30
28
name : Build and publish image
31
29
uses : alphagov/govuk-infrastructure/.github/workflows/build-and-push-image.yml@main
32
30
with :
33
- gitRef : ${{ inputs.gitRef || github.ref }}
31
+ gitRef : ${{ inputs.gitRef || github.ref_name }}
34
32
secrets :
35
33
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_GOVUK_ECR_ACCESS_KEY_ID }}
36
34
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_GOVUK_ECR_SECRET_ACCESS_KEY }}
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ workflow_run :
6
+ workflows : [CI]
7
+ types : [completed]
8
+ branches : [main]
9
+
10
+ jobs :
11
+ release :
12
+ if : github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
13
+ name : Release
14
+ uses : alphagov/govuk-infrastructure/.github/workflows/release.yml@main
15
+ secrets :
16
+ GH_TOKEN : ${{ secrets.GOVUK_CI_GITHUB_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments