Skip to content

Commit 13bcb3b

Browse files
committed
MINOR - Configure AWS credentials
1 parent d8cf00e commit 13bcb3b

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/actions/promote-environment/action.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ inputs:
2222
runs:
2323
using: "composite"
2424
steps:
25-
- name: Sync main
26-
shell: bash
27-
run: |
28-
git checkout main
29-
git pull --ff-only origin main
3025

3126
- name: Update image tag for environment
3227
shell: bash

.github/workflows/main-pipeline.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: "Main pipeline"
22

33
permissions:
44
contents: write
5+
id-token: write
56

67
on:
78
push:
@@ -13,6 +14,7 @@ env:
1314
IMAGE_REPOSITORY: 745892955196.dkr.ecr.us-east-1.amazonaws.com/javier/podinfo
1415

1516

17+
1618
jobs:
1719

1820
unit_tests:
@@ -71,8 +73,9 @@ jobs:
7173
wait: 2
7274

7375
build-docker-image:
76+
7477
name: "Build and push Docker image"
75-
runs-on: self-hosted-runner-large
78+
runs-on: ubuntu-latest
7679
outputs:
7780
image_tag: ${{ steps.build.outputs.image_tag }}
7881
image_repository: ${{ steps.build.outputs.image_repository }}
@@ -81,6 +84,12 @@ jobs:
8184
- name: Checkout code
8285
uses: actions/checkout@v6
8386

87+
- name: Configure AWS credentials (OIDC)
88+
uses: aws-actions/configure-aws-credentials@v5
89+
with:
90+
role-to-assume: arn:aws:iam::745892955196:role/github-actions
91+
aws-region: us-east-1
92+
8493
- name: Build and publish images
8594
id: build
8695
uses: ./.github/actions/build-docker-image

0 commit comments

Comments
 (0)