-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get terraform switcher install working via Github actions #525
Comments
It's been a while now since we switched from |
@yermulnik Thank you for your response. I still see the same error after updating. Please assist : GitHub Workflow step:
Error:
|
@janani2019 Please use triple backticks for code blocks. I can't reproduce 🤔 > ls -la
total 44
drwxr-xr-x 2 giermulnik giermulnik 4096 Dec 10 00:46 .
drwxr-xr-x 12 giermulnik giermulnik 36864 Dec 10 00:46 ..
> wget https://raw.githubusercontent.com/warrensbox/terraform-switcher/master/install.sh
--2024-12-10 00:49:09-- https://raw.githubusercontent.com/warrensbox/terraform-switcher/master/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9463 (9,2K) [text/plain]
Saving to: ‘install.sh’
install.sh 100%[==============================================>] 9,24K --.-KB/s in 0,001s
2024-12-10 00:49:09 (10,2 MB/s) - ‘install.sh’ saved [9463/9463]
> chmod 755 install.sh
> ./install.sh -b `pwd`/.bin
warrensbox/terraform-switcher info checking GitHub for tag 'latest'
warrensbox/terraform-switcher info found version: v1.2.4 for latest/linux/amd64
warrensbox/terraform-switcher info installed /home/giermulnik/tmp/qwe/.bin/tfswitch
> ls -la .bin/
total 11120
drwxr-xr-x 2 giermulnik giermulnik 4096 Dec 10 00:49 .
drwxr-xr-x 3 giermulnik giermulnik 4096 Dec 10 00:49 ..
-rwxr-xr-x 1 giermulnik giermulnik 11374744 Dec 10 00:49 tfswitch It works w/o issues even with script version from Can you please replace |
It's very odd, it seems to be getting to:
Unforunately, we can't see what github_release is outputting in the REALTAG assingment. Maybe running with with Edit: Ah sorry @yermulnik , I see you suggested this! Edit edit:
with
and attach full output. Edit edit edit: I wondered if the branching logic around whether curl vs wget was installed was causing the issue: I saw you're using wget in the Github action, so used latest ubuntu docker image (which doesn't have curl or wget), installed wget and ran the command and still seemed to work 🤔 |
Sure, here are the logs: Workflow step:
|
@janani2019 The problematic bit is this: + curl -w %{http_code} -sL -H Accept:application/json -o /tmp/tmp.Zz2HRlrK1E https://github.com/warrensbox/terraform-switcher/releases/latest
+ code=000 cURL encountered some hiccup and hence Is your GH Action running on a self-hosted worker? Could you please add |
This actions/runner-images#10009 looks related ( |
sure I added the curl command and here is the output :
|
What GHA worker are you using? The |
@janani2019 Have you been able to upgrade cURL on your GHA worker to see whether this fixes the issue? |
Thanks @yermulnik It was something to do with the certs. I am able to install tfswitch with no issues..
|
Glad you've managed it.
Is that the output from ps: closed issue since original issue had been resolved. |
I also see that |
Sure, updated that! workflow steps:
|
I was able to remove the symlink and it's all good now. Thank you for your help! |
Glad to hear. |
Is your feature request related to a problem? Please describe.
I am trying to install terraform switcher into an Ubuntu container via GitHub actions:
I get this error -
Describe the solution you'd like
I'd expect it to install tfswitch seamlessly onto the container. Any assistance with this issue would be appreciated!
The text was updated successfully, but these errors were encountered: