fix(rpc): move CORS layer above AcceptHeaderLayer #3943
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker Build Check | |
| on: | |
| push: | |
| branches: [main, next] | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| docker-build: | |
| strategy: | |
| matrix: | |
| component: [node] | |
| runs-on: Linux-ARM64-Runner | |
| name: Build ${{ matrix.component }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Configure AWS credentials | |
| if: github.event.pull_request.head.repo.fork == false | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-region: ${{ secrets.AWS_REGION }} | |
| role-to-assume: ${{ secrets.AWS_ROLE }} | |
| role-session-name: GithubActionsSession | |
| - name: Set cache parameters | |
| if: github.event.pull_request.head.repo.fork == false | |
| run: | | |
| echo "CACHE_FROM=type=s3,region=${{ secrets.AWS_REGION }},bucket=${{ secrets.AWS_CACHE_BUCKET }},name=miden-${{ matrix.component }}" >> $GITHUB_ENV | |
| echo "CACHE_TO=type=s3,region=${{ secrets.AWS_REGION }},bucket=${{ secrets.AWS_CACHE_BUCKET }},name=miden-${{ matrix.component }}" >> $GITHUB_ENV | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| with: | |
| cache-binary: true | |
| - name: Build Docker image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| push: false | |
| file: ./bin/${{ matrix.component }}/Dockerfile | |
| cache-from: ${{ env.CACHE_FROM || '' }} | |
| cache-to: ${{ env.CACHE_TO || '' }} |