Google Cloud Run Automation
Hi out there!
I'm trying to build a CI/CD pipeline from JetBrains Space to Google Cloud Platform.
Basically I just need to build and then deploy a Docker image, but I am totally lost in the specifics of the *.kts DSL (I'm coming from YAML-based GitHub Actions).
Could you please provide me with some guidance on how to wrap up two commands and set the pipeline up?
When deploying manually from my machine I simply use these two commands one right after another and it's done:
1. Builds an image and submits to Google Cloud Docker Registry
gcloud builds submit --tag gcr.io/PROJECT-ID/helloworld
2. Deploys the image to the bucket
gcloud run deploy --image gcr.io/PROJECT-ID/helloworld --platform managed
Source: https://cloud.google.com/run/docs/quickstarts/build-and-deploy#node.js
Please sign in to leave a comment.
2 years later and not a single comment to help?
I guess Space is not very friendly to Google Cloud Platform or the Go language.
Since I can find ZERO documentation on building a Go program or deploying to Google Cloud Platform/Google App Engine Standard.
Hey Jarrod,
I managed to build my own CI/CD pipeline using traditional shell scripts rather than these fancy KotlinScript automations
Hers is what your sample code would look like to build an image, push it to gcr.io and then deploy it to GKE k8s cluster (however, you can replace this step and deploy to App Engine or Cloud Run):
.space.kts
And the deployment.sh file