Environment variable https_proxy is not used
See original GitHub issueBehaviour
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_proxy
andhttps_proxy
to 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 }}
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
What's the 'right' format for the HTTP_PROXY environment ...
No, it isn't. You're right that there's a convention to use uppercase for environment variables, but it's only a convention, not an absolute ......
Read more >We need to talk: Can we standardize NO_PROXY? - GitLab
If you've used a Web proxy server before, you're probably familiar with the environment variables http_proxy or HTTP_PROXY .
Read more >HTTP_PROXY and HTTPS_PROXY environment variables ...
In a scenario when HTTP_PROXY and/or HTTPS_PROXY environment variable are set in the system, the Git itself works correctly.
Read more >set http_proxy not working on windows - Stack Overflow
Show activity on this post. First remove spaces beetween = . Then type set without parameter to check your environment variables.
Read more >How to set up proxy using http_proxy & https_proxy ...
Set up proxy server using http_proxy environment variable. The http_proxy and https_proxy environment variable is used to specify proxy settings to client ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@svasek Oh sorry I completely forgot that one. Will setup smth this week!
Hi @crazy-max, 🎉 Congratulation! I can confirm it works like a charm in both scenarios. So, It works even with the
aws-actions/configure-aws-credentials
.It’s also not necessary to set additional
env
for the step if proxy is set in the runner global environment. Thank you very much. Good job!