-
Notifications
You must be signed in to change notification settings - Fork 271
Open
Labels
Description
Contributing guidelines
- I've read the contributing guidelines and wholeheartedly agree
I've found a bug, and:
- The documentation does not mention anything about my problem
- There are no open or closed issues that are related to my problem
Description
Run docker/login-action@v3
with:
registry: redacted.dkr.ecr.eusc-de-east-1.amazonaws.eu
ecr: true
logout: true
env:
AWS_DEFAULT_REGION: eusc-de-east-1
AWS_REGION: eusc-de-east-1
AWS_ACCESS_KEY_ID: ***
AWS_SECRET_ACCESS_KEY: ***
AWS_SESSION_TOKEN: ***
Retrieving registries data through AWS SDK...
AWS ECR detected with region
Error: Region is missing
Running ECR login in the European Sovereign Cloud leads to an error in detecting the region correctly
Expected behaviour
Login to ECR, as the region is correctly provided in both env and registry URL
Actual behaviour
Unrecoverable error, seemingly due to lacking a region, which isn't true.
Repository URL
No response
Workflow run URL
No response
YAML workflow
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
audience: ${{ inputs.audience }}
role-to-assume: arn:${{ inputs.partition }}:iam::${{ inputs.accountID }}:role/${{ inputs.roleName }}
aws-region: ${{ inputs.region }}
- name: Login to AWS Container Registry
uses: docker/login-action@v3
with:
registry: ${{ inputs.accountID }}.dkr.ecr.${{ inputs.region }}.${{ inputs.url_suffix }}
ecr: true
env:
AWS_REGION: ${{ inputs.region }}Workflow logs
No response
BuildKit logs
Additional info
No response
kabakakao and autarchprinceps