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
- Create an action in workflow with a custom domain for ECR private registry
- 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.
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
Expected behaviour
Action correctly logins to ECR despite custom address using loginECR
Actual behaviour
login-action does not login to ECR using loginECR
Configuration
Solution
I think, it would be the best to add an optional flag
isECRto the configuration to allow use of ECR login despite custom domain usage.