Skip to content

Commit b1a5bba

Browse files
authored
Add test distributor build workflow (#1905)
1 parent c92d18f commit b1a5bba

File tree

2 files changed

+382
-0
lines changed

2 files changed

+382
-0
lines changed

.github/workflows/build-test-artifacts.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,20 @@ on:
2323
description: "Run Test on the new container image"
2424
default: true
2525
type: boolean
26+
build-distributor:
27+
description: "Whether to build an SSM distributor"
28+
default: false
29+
type: boolean
2630
workflow_call:
2731
inputs:
2832
test-image-before-upload:
2933
description: "Run Test on the new container image"
3034
default: true
3135
type: boolean
36+
build-distributor:
37+
description: "Whether to build an SSM distributor"
38+
default: false
39+
type: boolean
3240

3341
concurrency:
3442
group: ${{ github.workflow }}-${{ github.ref_name }}
@@ -72,6 +80,20 @@ jobs:
7280
BucketKey: "integration-test/binary/${{ github.sha }}"
7381
PackageBucketKey: "integration-test/packaging/${{ github.sha }}"
7482

83+
BuildDistributor:
84+
needs: [BuildAndUpload, BuildAndUploadPackages, BuildDocker]
85+
uses: ./.github/workflows/test-build-distributor.yml
86+
secrets: inherit
87+
permissions:
88+
id-token: write
89+
contents: read
90+
with:
91+
BucketKey: "integration-test/binary/${{ github.sha }}"
92+
PackageBucketKey: "integration-test/packaging/${{ github.sha }}"
93+
TerraformAWSAssumeRole: ${{ vars.TERRAFORM_AWS_ASSUME_ROLE }}
94+
Bucket: ${{ vars.S3_INTEGRATION_BUCKET }}
95+
DistributorName: ${{ vars.SSM_TEST_DISTRIBUTOR_NAME }}
96+
7597
BuildAndUploadITAR:
7698
uses: ./.github/workflows/test-build.yml
7799
secrets: inherit

0 commit comments

Comments
 (0)