Skip to content

Commit

Permalink
Merge pull request #2766 from buildkite/plt-2360-fix-oidc-role-name
Browse files Browse the repository at this point in the history
Plt 2360 fix OIDC role name
  • Loading branch information
amu-g authored May 6, 2024
2 parents 98c49fc + 70215f4 commit 78d3217
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 10 deletions.
16 changes: 16 additions & 0 deletions .buildkite/pipeline.release-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ steps:
login: true
account-ids: "032379705303"
- docker#v5.8.0:
environment:
- "AWS_ACCESS_KEY_ID"
- "AWS_SECRET_ACCESS_KEY"
- "AWS_SESSION_TOKEN"
image: "032379705303.dkr.ecr.us-east-1.amazonaws.com/deploytools:2022.07"
propagate-environment: true
mount-buildkite-agent: true
Expand Down Expand Up @@ -73,6 +77,10 @@ steps:
- aws-assume-role-with-web-identity:
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-stable
- docker#v5.8.0:
environment:
- "AWS_ACCESS_KEY_ID"
- "AWS_SECRET_ACCESS_KEY"
- "AWS_SESSION_TOKEN"
image: "public.ecr.aws/docker/library/ruby:3.0"
entrypoint: bash
propagate-environment: true
Expand Down Expand Up @@ -110,6 +118,10 @@ steps:
- aws-assume-role-with-web-identity:
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-stable
- docker#v5.8.0:
environment:
- "AWS_ACCESS_KEY_ID"
- "AWS_SECRET_ACCESS_KEY"
- "AWS_SESSION_TOKEN"
image: "public.ecr.aws/docker/library/ruby:3.0"
entrypoint: bash
propagate-environment: true
Expand Down Expand Up @@ -141,6 +153,10 @@ steps:
login: true
account-ids: "032379705303"
- docker#v5.8.0:
environment:
- "AWS_ACCESS_KEY_ID"
- "AWS_SECRET_ACCESS_KEY"
- "AWS_SESSION_TOKEN"
image: "032379705303.dkr.ecr.us-east-1.amazonaws.com/deploytools:2022.07"
propagate-environment: true
mount-buildkite-agent: true
30 changes: 20 additions & 10 deletions .buildkite/pipeline.release-unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ steps:
CODENAME: "unstable"
plugins:
- aws-assume-role-with-web-identity:
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-unstable
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-beta
- ecr#v2.7.0:
login: true
account-ids: "032379705303"
Expand All @@ -31,11 +31,15 @@ steps:
CODENAME: "unstable"
plugins:
- aws-assume-role-with-web-identity:
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-unstable
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-beta
- ecr#v2.7.0:
login: true
account-ids: "032379705303"
- docker#v5.8.0:
environment:
- "AWS_ACCESS_KEY_ID"
- "AWS_SECRET_ACCESS_KEY"
- "AWS_SESSION_TOKEN"
image: "032379705303.dkr.ecr.us-east-1.amazonaws.com/deploytools:2022.07"
propagate-environment: true
mount-buildkite-agent: true
Expand All @@ -47,7 +51,7 @@ steps:
RPM_S3_BUCKET: "yum.buildkite.com"
plugins:
- aws-assume-role-with-web-identity:
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-unstable
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-beta
- docker#v5.8.0:
environment:
- "AWS_ACCESS_KEY_ID"
Expand All @@ -71,8 +75,12 @@ steps:
DISTRO_VERSION: rpm_any/rpm_any
plugins:
- aws-assume-role-with-web-identity:
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-unstable
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-beta
- docker#v5.8.0:
environment:
- "AWS_ACCESS_KEY_ID"
- "AWS_SECRET_ACCESS_KEY"
- "AWS_SESSION_TOKEN"
image: "public.ecr.aws/docker/library/ruby:3.0"
entrypoint: bash
propagate-environment: true
Expand All @@ -84,11 +92,9 @@ steps:
env:
CODENAME: "unstable"
DEB_S3_BUCKET: "apt.buildkite.com/buildkite-agent"
agents:
queue: "deploy"
plugins:
- aws-assume-role-with-web-identity:
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-unstable
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-beta
- ecr#v2.7.0:
login: true
account-ids: "032379705303"
Expand All @@ -110,7 +116,7 @@ steps:
DISTRO_VERSION: any/any
plugins:
- aws-assume-role-with-web-identity:
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-unstable
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-beta
- docker#v5.8.0:
image: "public.ecr.aws/docker/library/ruby:3.0"
entrypoint: bash
Expand All @@ -124,7 +130,7 @@ steps:
CODENAME: "unstable"
plugins:
- aws-assume-role-with-web-identity:
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-unstable
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-beta
- ecr#v2.7.0:
login: true
account-ids: "445615400570"
Expand All @@ -138,11 +144,15 @@ steps:
CODENAME: "unstable"
plugins:
- aws-assume-role-with-web-identity:
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-unstable
role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-beta
- ecr#v2.7.0:
login: true
account-ids: "032379705303"
- docker#v5.8.0:
environment:
- "AWS_ACCESS_KEY_ID"
- "AWS_SECRET_ACCESS_KEY"
- "AWS_SESSION_TOKEN"
image: "032379705303.dkr.ecr.us-east-1.amazonaws.com/deploytools:2022.07"
propagate-environment: true
mount-buildkite-agent: true

0 comments on commit 78d3217

Please sign in to comment.