Skip to content

This package includes scripts for logging into the Amazon Elastic Container Registry (ECR), building Docker images, and pushing these images to an ECR repository.

Notifications You must be signed in to change notification settings

diomalta/aws-ecr-push

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
IMAGE_TAG_DEFAULT Docker Image Tag Default (default: latest)
PATH_DOCKERFILE Dockerfile Path (default: ./Dockerfile)
DOCKER_ARCHITECTURE Docker Architecture (default: linux/amd64)

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 }}

About

This package includes scripts for logging into the Amazon Elastic Container Registry (ECR), building Docker images, and pushing these images to an ECR repository.

Topics

Resources

Stars

Watchers

Forks

Packages