Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
play

GitHub Action

@diomalta/aws-ecr-push

v1.0.5

@diomalta/aws-ecr-push

play

@diomalta/aws-ecr-push

Pushes a docker image to AWS ECR

Installation

Copy and paste the following snippet into your .yml file.

              

- name: @diomalta/aws-ecr-push

uses: diomalta/[email protected]

Learn more about this action in diomalta/aws-ecr-push

Choose a version

ECR Push

This action builds, tags, and pushes a Docker image to AWS ECR.

Environment Variables

Name Description
AWS_ACCESS_KEY_ID AWS Access Key ID
AWS_SECRET_ACCESS_KEY AWS Secret Access Key
AWS_ECR_REGION AWS ECR Region
IMAGE_REPOSITORY_URL AWS ECR Image Repository URL
IMAGE_TAG Docker Image Tag (default: random hash)
PATH_DOCKERFILE Dockerfile Path (default: ./Dockerfile)

Example Usage

- name: diomalta/aws-ecr-push
  uses: diomalta/[email protected]
  env:
    AWS_ECR_REGION: ${{ secrets.AWS_ECR_REGION }}
    AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
    AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
    IMAGE_REPOSITORY_URL: ${{ secrets.IMAGE_REPOSITORY_URL }}