Skip to content

Commit

Permalink
Update GHA to release Enhanced CI to us-east-1 (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
movence authored Oct 3, 2023
1 parent 27d4c30 commit 5486731
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/enhanced-container-insights-beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
12 changes: 11 additions & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5486731

Please sign in to comment.