deploy-cloudrun | A GitHub Action for deploying services to Google Cloud Run | Continuous Deployment library
kandi X-RAY | deploy-cloudrun Summary
kandi X-RAY | deploy-cloudrun Summary
Deploys your container image to Cloud Run and makes the URL available to later build steps via outputs.
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 deploy-cloudrun
deploy-cloudrun Key Features
deploy-cloudrun Examples and Code Snippets
Community Discussions
Trending Discussions on deploy-cloudrun
QUESTION
I am working with a mono repo and I would like to deploy my back-end (only) with the Cloud Run service (using the "official" google cloud run action). For this action, I need a Dockerfile at the root of my project for building my image. But my Dockerfile is under ./server
.
Is there a way to use something like working-directory
for the run
steps ? I didn't find anything from the doc.
Or do I have to have a Dockerfile at the root of my project and the Dockerfile points to the ./server
?
My project tree :
...ANSWER
Answered 2022-Feb-08 at 18:20Since you are working on a monorepo and wants to run this particular workflow to deploy only when backend code base gets changed, I would start by limiting the trigger by only changes related to the /server
folder.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install deploy-cloudrun
Create a new Google Cloud Project (or select an existing project).
Enable the Cloud Run API.
Create a Google Cloud service account or select an existing one.
Add the the following [Cloud IAM roles][roles] to your service account: Cloud Run Admin - allows for the creation of new Cloud Run services Service Account User - required to deploy to Cloud Run as service account Storage Admin - allow push to Google Container Registry (this grants project level access, but recommend reducing this scope to bucket level permissions.)
Download a JSON service account key for the service account.
Add the following secrets to your repository's secrets: GCP_PROJECT: Google Cloud project ID GCP_SA_KEY: the downloaded service account key
To run this workflow, push to the branch named example-build-deploy:.
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