setup-gcloud | GitHub Action for installing and configuring the gcloud CLI | GCP library
kandi X-RAY | setup-gcloud Summary
kandi X-RAY | setup-gcloud Summary
Configures the Google Cloud SDK in the GitHub Actions environment. The Google Cloud SDK includes both the gcloud and gsutil binaries.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of setup-gcloud
setup-gcloud Key Features
setup-gcloud Examples and Code Snippets
Community Discussions
Trending Discussions on setup-gcloud
QUESTION
I've followed these instructions to the letter to allow me to use the short lived token authentication method to access gcloud resources from our github actions workflow.
I've created the service account, workload identity pool and github provider pool using the exact instructions above, but it doesn't appear that the auth step is getting the correct token (or any token at all). The GCP service account has the correct IAM permissions.
On the gcloud compute instances list
step, I'm receiving the error:
ANSWER
Answered 2022-Apr-07 at 13:15So I later found out what this was. Despite running:
QUESTION
I am using Github actions to deploy my application to Google cloud and it gave me following error -
...ANSWER
Answered 2022-Mar-23 at 20:13That 3rd party action is moving away from the convention of using a branch named master
.
Instead of:
QUESTION
i work on a project and want to make a github workflow , so it can deplay to staging automatically.
this is the workflow code :
...ANSWER
Answered 2022-Mar-02 at 03:49Module not found: Error: Can't resolve '../../../dist/@core/components/feather-icon/FeatherIcon.vue' in 'pages/Artisan/detail'
QUESTION
Github Actions were working in my repository till yesterday. I didnt make any changes in .github/workflows/dev.yml file or in DockerFile.
But, suddenly in recent pushes, my Github Actions fail with the error
Setup, Build, Publish, and Deploy
...
ANSWER
Answered 2021-Jul-27 at 13:24I fixed it by changing uses
value to
uses: google-github-actions/setup-gcloud@master
QUESTION
I'm trying to publish a npm package on GAR (Google Artifact Registry) through github using google-github-actions/auth@v0
and google-artifactregistry-auth
For the authentication to google from github here is what I did to use the Federation Workload Identity:
...ANSWER
Answered 2022-Feb-11 at 12:44I finally find out !!! BUT I'm not sure in term of security if there is any risk or not so if anyone can advice I'll edit the answer !
What is changing but I'm not sure in term of security is here :
QUESTION
I'm trying to deploy my Django website with Cloud Run, as described in Google Cloud Platform's documentation, but I get the error Error 403: 934957811880@cloudbuild.gserviceaccount.com does not have storage.objects.get access to the Google Cloud Storage object., forbidden
when running the command gcloud builds submit --config cloudmigrate.yaml --substitutions _INSTANCE_NAME=trouwfeestwebsite-db,_REGION=europe-west6
.
The full output of the command is: (the error is at the bottom)
...ANSWER
Answered 2021-Oct-24 at 11:00The following solved my problem.
DazWilkin was right in saying:
it's incorrectly|unable to reference the bucket
(comment upvote for that, thanks!!). In my secret (configured on Secret Manager; or alternatively you can put this in a .env file at project root folder level and making sure you don't exclude that file for deployment in a .gcloudignore file then), I now have set:
GS_BUCKET_NAME=trouwfeestwebsite_sasa-trouw-bucket
(project ID + underscore + storage bucket ID)instead of
GS_BUCKET_NAME=sasa-trouw-bucket
Whereas the tutorial in fact stated I had to set the first, I had set the latter since I found the underscore splitting weird, nowhere in the tutorial had I seen something similar, I thought it was an error in the tutorial.
Adapting the
GS_BUCKET_NAME
changed the error of gcloud builds submit to:
QUESTION
I have a workflow in GitHub that will execute a shell script, and inside this script I need to use gsutil
In my workflow yml-file I have the following steps:
...ANSWER
Answered 2021-May-26 at 00:51The problem seemed to be that the environment variables were not inherited when running with sudo
. There are many ways to work around this, but I was able to confirm that it would run with sudo -E
. Of course, if you don't need to run with sudo
, you should remove it, but I guess it's necessary.
(The reproduction code was easy for me to reproduce it. Thanks)
QUESTION
I'm trying to find out how to best containerize my Vuejs app and then upload it to Google Container Registry.
I've hacked and slashed some stuff together but I don't think it's right, my container gets pushed to GCR but it doesn't work.
...ANSWER
Answered 2020-Oct-02 at 14:27The error you are getting is because you aren't listening for incoming HTTP requests in your code or you're listening for incoming requests on the wrong port.
As you can see documented in the Cloud Run container runtime, your container must listen for incoming HTTP requests on the port that is defined by Cloud Run and provided in the $PORT
environment variable.
If this fails, the health check will fail to, and it would switch to an error state and the traffic will not be routed to the correct PORT.
I would post an example for Node.js and as I can see you do not have specified anything related to the port:
QUESTION
i have a Github actions with Gcloud, this setup worked well, after 3 months (no changes) i ran another Deployment/Action but now there is a message:
Bucket is requester pays bucket but no user project provided.
What is the cause of this error?
I repeat, this Action worked well and no changes were made, just ran again after 3 months and failed.
My current Actions yaml is:
...ANSWER
Answered 2020-Sep-29 at 21:25As the link I shared in my comment says, the error you are getting is because the Requester pays is enabled in the bucket you are using to deploy. I tried at my end enabling this feature, using the below command, and I got the same error as you.
QUESTION
Using GH actions I'm building and pushing an image to my docker repository. How can this be pulled on a Google compute engine after having completed setup-gcloud
:
ANSWER
Answered 2020-Jun-16 at 03:04You could install Docker Engine on several Linux Platforms and on macOS and Windows10 through Docker Desktop.
The command "docker pull" pulls image by default from Docker Hub. You could also pull the images from your desired repository by specifying the path of repository.
You need to install Docker Compose so that you could run the command "docker-compose up" which starts compose and runs your entire app.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install setup-gcloud
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page