File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
actions/promote-environment Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,6 @@ inputs:
2222runs :
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
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: "Main pipeline"
22
33permissions :
44 contents : write
5+ id-token : write
56
67on :
78 push :
1314 IMAGE_REPOSITORY : 745892955196.dkr.ecr.us-east-1.amazonaws.com/javier/podinfo
1415
1516
17+
1618jobs :
1719
1820 unit_tests :
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 }}
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
You can’t perform that action at this time.
0 commit comments