Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 2.76 KB

README.md

File metadata and controls

47 lines (36 loc) · 2.76 KB

docker-qemu-buildx-ecr-action

Docker QEMU Buildx ECR Action - supports multi platform builds including linux/arm64 and ECR Push

Usage

name: ci

on:
  push:

jobs:
  qemu:
    runs-on: ubuntu-latest
    steps:
      - name: Docker QEMU Buildx ECR
        uses: bbharathkumarreddy/[email protected]
        with:
          platform: linux/arm64
          ecr-push: true
          aws-access-key-id: ${{ secrets.aws-access-key-id }}
          aws-secret-access-key: ${{ secrets.aws-secret-access-key }}
          aws-region: ${{ vars.aws-region }}
          ecr-repository: my-service
          ecr-tag: latest

Customizing

inputs

The following inputs can be used as step.with keys:

Name Type Default Description
platform String linux/arm64 Platform architecture to build.
ecr-push Boolean true Set to true to push the docker build to ECR repository. aws.* and ecr.* inputs to be given if set to true.
aws-access-key-id String Pass the AWS access key id.
aws-secret-access-key String Pass the AWS secret access key.
aws-region String Pass the AWS region of the ECR repository.
ecr-repository String Pass the ECR repository name.
ecr-tag String latest Pass ECR tag to push.

Contributing

Want to contribute? ✅