hands-lab / push-ecr-action

Push Docker or OCI image to AWS ECR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Push ECR Action

GitHub

Push Docker or OCI image to AWS ECR

Feature

  • Login AWS ECR
  • Change image tag
    • Add AWS ECR registry to the beginning of the image name
  • Push Docker or OCI image

Usage

steps:
  - uses: hands-lab/push-ecr-action@v1
    with:
      image: demo
      aws-access-key-id: ${{ secret.AWS_ACCESS_KEY_ID }}
      aws-secret-access-key: ${{ secret.AWS_SECRET_ACCESS_KEY }}
      aws-region: ${{ secret.AWS_REGION }}
      aws-account-id: ${{ secret.AWS_ACCOUNT_ID }}

Inputs

Name Type Required Default Description
image string true image name
aws-access-key-id string true AWS Access Key ID
aws-secret-access-key string true AWS Secret Access Key
aws-region string true AWS Region
aws-account-id string true AWS Account ID

About

Push Docker or OCI image to AWS ECR

License:MIT License