diff --git a/.github/workflows/enhanced-container-insights-beta-release.yml b/.github/workflows/enhanced-container-insights-beta-release.yml index 2aaf11e220..f08844262f 100644 --- a/.github/workflows/enhanced-container-insights-beta-release.yml +++ b/.github/workflows/enhanced-container-insights-beta-release.yml @@ -5,7 +5,7 @@ name: Enhanced Container Insights Beta Release on: workflow_dispatch: jobs: - BuildAndUpload: + BuildAndPushToUSWEST2: uses: ./.github/workflows/test-build.yml secrets: inherit permissions: @@ -15,3 +15,14 @@ jobs: ContainerRepositoryNameAndTag: "enhanced-container-insights-beta:latest" BucketKey: "enhanced-container-insights-beta" PackageBucketKey: "enhanced-container-insights-beta" + BuildAndPushToUSEAST1: + uses: ./.github/workflows/test-build.yml + secrets: inherit + permissions: + id-token: write + contents: read + with: + ContainerRepositoryNameAndTag: "enhanced-container-insights-beta:latest" + BucketKey: "enhanced-container-insights-beta" + PackageBucketKey: "enhanced-container-insights-beta" + TargetRegion: "us-east-1" diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index def7f549b8..f67e1210e7 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -26,6 +26,11 @@ on: description: "Integration tests put the MSI and PKG in a different bucket path than the binaries." required: true type: string + TargetRegion: + description: "Target region" + required: false + type: string + default: "us-west-2" workflow_call: inputs: ContainerRepositoryNameAndTag: @@ -46,6 +51,11 @@ on: description: "Integration tests put the MSI and PKG in a different bucket path than the binaries." required: true type: string + TargetRegion: + description: "Target region" + required: false + type: string + default: "us-west-2" jobs: MakeBinary: @@ -73,7 +83,7 @@ jobs: uses: aws-actions/configure-aws-credentials@v2 with: role-to-assume: ${{ secrets.TERRAFORM_AWS_ASSUME_ROLE }} - aws-region: us-west-2 + aws-region: $${{ inputs.TargetRegion }} - name: Cache binaries id: cached_binaries