-
Notifications
You must be signed in to change notification settings - Fork 510
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
Please drastically speed up gcloud installs #610
Comments
Hi @andaag Unfortunately there's nothing we can do to improve gcloud download times. The gcloud binary is a few hundred megabytes (gigabytes for Windows). It's just downloading and decompressing a tarball, so there's no room for optimization. |
Hi @andaag If you don't need a specific version, you can skip setup-gcloud and use the system-provided version (by GitHub) instead. Then just manually install the component: run: 'gcloud components install foo bar --quiet' The next version of |
Ah that is very helpful, thank you! |
Hello @sethvargo, the skip install flag seems not working neither :
Using runner ubuntu-latest (22) Am i missing something ? Thanks |
Hmm - that's interesting. It looks like GitHub might install gcloud from apt instead of from the sources. |
Hello 👋 I've created a simple GitHub Action that installs the To get started, drop this in your workflow: - uses: simenandre/setup-gke-gcloud-auth-plugin@v1 Feel free to open issues and PRs here: https://github.com/simenandre/setup-gke-gcloud-auth-plugin |
TL;DR
Since the gke-gcloud-auth-plugin is required our build times in quite many places got way worse. I have some jobs where google-github-actions/setup-gcloud@v1 takes over a minute, and all the other steps are less than 5s.
Detailed design
The step we are currently using to install gcloud sdk:
Additional information
No response
The text was updated successfully, but these errors were encountered: