Skip to content

Add permissions for Github OIDC Token endpoint (#21) #20

Add permissions for Github OIDC Token endpoint (#21)

Add permissions for Github OIDC Token endpoint (#21) #20

Workflow file for this run

---
name: "Build"
on:
push:
branches:
- main
jobs:
build:
name: "Build Docker image and push to Dockerhub"
runs-on: ubuntu-latest
env:
AWS_REGION: eu-west-1
# These permissions are needed to interact with GitHub's OIDC Token endpoint.
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1.6.1
with:
role-to-assume: arn:aws:iam::118330671040:role/node-indexer
aws-region: ${{ env.AWS_REGION }}
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- env:
GITHUB_TOKEN: ${{ secrets.DUNE_ENG_ACCESS_TOKEN }}
ECR_REGISTRY: public.ecr.aws/duneanalytics
ECR_REPOSITORY: node-indexer
run: |
make image-build
make image-push