Skip to content

Use AWS ECR login method with a custom domain #107

Description

@pawelmitka

Behaviour

Currently the ECR login method depends on isEcr which verifies an address. However, we would like to use a custom domain with ECR to simplify our Dockerfiles.

Steps to reproduce this issue

  1. Create an action in workflow with a custom domain for ECR private registry
  2. Run workflow

Expected behaviour

Action correctly logins to ECR despite custom address using loginECR

Actual behaviour

login-action does not login to ECR using loginECR

Configuration

  • Repository URL (if public):
  • Build URL (if public):
     - name: Login to ECR
        uses: docker/login-action@v1
        with:
          registry: custom.io
          username: ${{ secrets.AWS_ACCESS_KEY_ID }}
          password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

Solution

I think, it would be the best to add an optional flag isECR to the configuration to allow use of ECR login despite custom domain usage.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions