This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
Hello chi! Hello slog! By bye zap! #480
Workflow file for this run
This file contains 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 | |
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@v4 | |
with: | |
role-to-assume: ${{ secrets.AWSROLE }} | |
aws-region: ${{ secrets.AWSREGION }} | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
- uses: aws-actions/amazon-ecr-login@v2 | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
- uses: docker/setup-qemu-action@v3 | |
- uses: docker/setup-buildx-action@v3 | |
- uses: docker/build-push-action@v5 | |
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@v5 | |
with: | |
push: false | |
platforms: linux/amd64,linux/arm64 | |
tags: ${{ secrets.REGISTRY }}/rpc-gateway:${{ github.sha }} | |
if: ${{ github.actor == 'dependabot[bot]' }} |