Skip to content

Commit

Permalink
Add AWS login to GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
emi80 committed Jun 19, 2024
1 parent 5d1d61d commit 4029656
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ on:
env:
JAVA_VERSION: 17
JAVA_DISTRO: zulu

AWS_REGION: us-east-1

permissions:
id-token: write # This is required for requesting the JWT
contents: read

jobs:
pipeline-test:
name: Pipeline tests
Expand Down Expand Up @@ -50,6 +55,7 @@ jobs:
workflow-test:
name: Workflow tests
runs-on: ubuntu-latest
needs: module-test

steps:
- uses: actions/checkout@v4
Expand All @@ -72,6 +78,16 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4 # More information on this action can be found below in the 'AWS Credentials' section
with:
role-to-assume: arn:aws:iam::566365074765:role/github-actions-role
aws-region: ${{ env.AWS_REGION }}
- name: Login to Amazon ECR Public
id: login-ecr-public
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public
- name: Set up Java
uses: actions/setup-java@v4
with:
Expand Down

0 comments on commit 4029656

Please sign in to comment.