-
Notifications
You must be signed in to change notification settings - Fork 40
79 lines (72 loc) · 2.23 KB
/
Copy pathrelease-and-deploy-bfd.yml
File metadata and controls
79 lines (72 loc) · 2.23 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
name: "Release and Deploy BFD"
on:
workflow_dispatch:
inputs:
release-version:
description: >-
Override the release version. Default to promoting the current
X.Y.Z-SNAPSHOT to X.Y.Z when empty.
required: false
default: ""
development-version:
description: >-
Override the next development iteration version.
Default to X.(Y+1).0-SNAPSHOT of the release version X.Y.Z when empty.
required: false
default: ""
aws-region:
description: >-
Override the AWS Region
default: us-east-1
type: choice
options:
- us-east-1
- us-west-2
required: true
permissions:
id-token: write # This is required for requesting the AWS IAM OIDC JWT
contents: write # This is required for actions/checkout
defaults:
run:
shell: bash
jobs:
build-release:
if: ${{ github.ref_name == github.event.repository.default_branch }}
uses: ./.github/workflows/build-release.yml
with:
releaseVersion: ${{ inputs.release-version }}
developmentVersion: ${{ inputs.development-version }}
awsRegion: ${{ inputs.aws-region }}
secrets: inherit
deploy-platform:
uses: ./.github/workflows/deploy-platform-services.yml
needs: [build-release]
strategy:
matrix:
account-type: ["prod", "non-prod"]
with:
account-type: ${{ matrix.account-type }}
git-ref: refs/tags/${{ needs.build-release.outputs.bfd_release }}
secrets: inherit
deploy-to-test:
uses: ./.github/workflows/deploy-env-services.yml
needs: [build-release, deploy-platform]
with:
bfd-env: test
git-ref: refs/tags/${{ needs.build-release.outputs.bfd_release }}
secrets: inherit
deploy-to-sandbox:
uses: ./.github/workflows/deploy-env-services.yml
needs: [build-release, deploy-to-test]
with:
bfd-env: sandbox
git-ref: refs/tags/${{ needs.build-release.outputs.bfd_release }}
secrets: inherit
deploy-to-prod:
uses: ./.github/workflows/deploy-env-services.yml
needs: [build-release, deploy-to-sandbox]
with:
bfd-env: prod
git-ref: refs/tags/${{ needs.build-release.outputs.bfd_release }}
secrets: inherit