-
Notifications
You must be signed in to change notification settings - Fork 283
Closed
Description
Behaviour
Login to AWS ECR doesn't work if action is running behind http(s) proxy.
Steps to reproduce this issue
- Run self-hosted runner in network environment with blocked internet connection which needs use http_proxy
- Set Environment variables
http_proxyandhttps_proxyto correct proxy server - Let login-action to login to (private) ECR
- Error: connect ETIMEDOUT 52.119.173.252:443
Expected behaviour
AWS ECR auth token should be retrieved with AWS SDK.
Actual behaviour
##[debug]Save intra-action state isPost = true
::save-state name=registry::***.dkr.ecr.us-west-2.amazonaws.com
##[debug]Save intra-action state registry = ***.dkr.ecr.us-west-2.amazonaws.com
::save-state name=logout::true
##[debug]Save intra-action state logout = true
Retrieving registries data through AWS SDK...
##[debug]Requesting AWS ECR auth token for ***
AWS ECR detected with us-west-2 region
Error: connect ETIMEDOUT 52.119.173.252:443
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Login to AWS ECR
Configuration
- Repository URL (if public): private
- Build URL (if public): private
- name: Configure AWS Credentials
if: github.event_name != 'pull_request'
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- name: Login to AWS ECR
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ${{ env.ECR_REPO }}Reactions are currently unavailable