Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Merge pull request #114 from 0xProject/dependabot/github_actions/dock… #308

Merge pull request #114 from 0xProject/dependabot/github_actions/dock…

Merge pull request #114 from 0xProject/dependabot/github_actions/dock… #308

Workflow file for this run

name: docker
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hadolint/[email protected]
with:
recursive: true
ignore: DL3018,DL3019
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: ${{ secrets.AWSROLE }}
aws-region: ${{ secrets.AWSREGION }}
if: ${{ github.actor != 'dependabot[bot]' }}
- uses: aws-actions/amazon-ecr-login@v1
if: ${{ github.actor != 'dependabot[bot]' }}
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v4
with:
push: ${{ github.ref == 'refs/heads/main' }}
platforms: linux/amd64,linux/arm64
tags: ${{ secrets.REGISTRY }}/rpc-gateway:${{ github.sha }}
if: ${{ github.actor != 'dependabot[bot]' }}
- uses: docker/build-push-action@v4
with:
push: false
platforms: linux/amd64,linux/arm64
tags: ${{ secrets.REGISTRY }}/rpc-gateway:${{ github.sha }}
if: ${{ github.actor == 'dependabot[bot]' }}