mirror of
https://github.com/docker/build-push-action.git
synced 2026-06-10 14:49:23 +00:00
ci(e2e): use OIDC for AWS ECR
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
12
.github/workflows/.e2e-run.yml
vendored
12
.github/workflows/.e2e-run.yml
vendored
@@ -10,6 +10,9 @@ on:
|
||||
type:
|
||||
required: true
|
||||
type: string
|
||||
provider:
|
||||
required: true
|
||||
type: string
|
||||
name:
|
||||
required: true
|
||||
type: string
|
||||
@@ -108,9 +111,16 @@ jobs:
|
||||
driver-opts: |
|
||||
image=${{ matrix.buildkit_image }}
|
||||
network=host
|
||||
-
|
||||
name: Configure AWS credentials
|
||||
if: inputs.provider == 'aws'
|
||||
uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # v6.2.0
|
||||
with:
|
||||
role-to-assume: arn:aws:iam::175142243308:role/official_gha_cicd
|
||||
aws-region: us-east-1
|
||||
-
|
||||
name: Login to Registry
|
||||
if: github.event_name != 'pull_request' && (inputs.type == 'remote' || env.REGISTRY_USER != '')
|
||||
if: github.event_name != 'pull_request' && (inputs.type == 'remote' || inputs.provider == 'aws' || env.REGISTRY_USER != '')
|
||||
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
||||
with:
|
||||
registry: ${{ env.REGISTRY_FQDN || inputs.registry }}
|
||||
|
||||
Reference in New Issue
Block a user