Questions tagged [google-cloud-build]

For programming/API questions about Google Cloud Build, a service that executes builds, regardless of language, on the Google Cloud Platform infrastructure.

The official documentation can be found here: https://cloud.google.com/cloud-build/docs/

1423 questions
0
votes
0 answers

How to trigger Google Cloud Build, based on a change in a Docker registry

It's obvious the short answer is "it cannot be done". Google Cloud Console currently provides these as options for a build trigger: Is there, however, some workaround that I have missed - or knowledge that Docker registry might be supported as a…
akauppi
  • 17,018
  • 15
  • 95
  • 120
0
votes
1 answer

Cloud Build, maven package, no target folder

- name: 'gcr.io/cloud-builders/mvn' args: ['clean', 'package', '-Ddockerfile.skip', '-DskipTests' ] - name: 'gcr.io/cloud-builders/mvn' args: ['dockerfile:build', '-Ddockerfile.skip', …
ses
  • 13,174
  • 31
  • 123
  • 226
0
votes
1 answer

Google App Engine custom builds (2nd generation)

As I understand it, gcloud app deploy triggers a Cloud Build job behind the scenes based on command line options and things like requirements.txt (for python runtime). What I am looking to do is extend these Cloud Build steps to include things like…
0
votes
1 answer

Cloud Build fails to build the the simple build step with maven

Testing the cloud-build Part of my cloudbuild.yaml - name: 'gcr.io/cloud-builders/mvn' args: ['dockerfile:build'] dockerfile:build perfectly works in bitbucket pipeline, no problem. I use
ses
  • 13,174
  • 31
  • 123
  • 226
0
votes
1 answer

Installing google-chrome in cloud build step not shared across steps (using volumes)

I'm having trouble installing google chrome that will be shareable across steps. My cloudbuild.yaml looks like so: - name: 'ubuntu' args: ['bash', 'tools/download-chrome.sh'] volumes: - name: 'bin' path: '/usr/bin' - name:…
0
votes
1 answer

Deploy Ruby on Rails app to App Engine using Cloud Build

I'm trying to automate the deployment of a Ruby on Rails app to App Engine using Cloud Build. My app.yaml looked like this, runtime: ruby env: flex entrypoint: bundle exec rails server But I'm getting this error, Step #1: ERROR:…
0
votes
2 answers

docker file error gzip: stdin: invalid compressed data--crc error

I'm learning how to used Docker and gcp using this quickstart, but have an error I can't fix. There are two files in the folder, Dockerfile.txt and quickstart.sh. The Dockerfile has been created using Notepad++ and saved as a Dockerfile.txt file.…
Zeus
  • 1,496
  • 2
  • 24
  • 53
0
votes
1 answer

Cloud Build docker build has a different build output to local docker build?

I've run into a very strange issue where a Dockerfile is failing in one of it's steps when it's built on GCP Cloud Build. However it builds locally just fine. What might be the cause of the issue? Why would there by any difference? The actual…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
0
votes
2 answers

How to check HTTP basic auth on the python environment of Google Cloud Functions

How could this be implemented? I'm not sure if it's possible to use the various flask related libraries as they use python decorators - and I don't have access to the Flask routes. My solution would be to manually get the headers, and parse the…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
0
votes
1 answer

Building Docker images from Google Cloud Functions

As part of my CD pipeline, I am setting up a Google Cloud Function to handle new repo pushes, create docker images and push them to the registry. I have all working on a VM but there is no need to have one running 24x7 just for this. So, looking…
0
votes
1 answer

GC Cloud Build custom build process with internal repostory

I have to configure custom build process of GC AppEngine application with GC Cloud Build. First of all - I have an internal python repository on the GC ComputeEngine instance. It's accessible only through internal network and I use Remote-builder to…
0
votes
1 answer

GC Cloud Build: Exception in Remote-Builder hello world

I try to set up remote builde of my AppEngine app with Remote Builder image. Here is my cloudbuild.yaml: steps: - name: gcr.io/{PROJECT_NAME}/remote-builder env: - ZONE=us-east1-b - INSTANCE_NAME=Remote_Cloud_Build -…
Pizza eu
  • 1,419
  • 1
  • 14
  • 27
0
votes
1 answer

Node 8 Firebase functions fails to deploy from CloudBuild

I have a project that successfully deploys to firebase functions using the Node 8 engine from my local dev environment to firebase. I have been trying to get it working with CloudBuild, however, I get an syntax error due to using the async…
MikeT
  • 807
  • 10
  • 21
0
votes
1 answer

unable to verify webhook

I have a webhook which delivers Push event payloads to a Google Cloud Function. My nodejs code looks like this: function validateRequest (req) { return Promise.resolve() .then(() => { const digest = crypto .createHmac('sha1',…
Brian Barnes
  • 367
  • 2
  • 11
0
votes
1 answer

Access services on the Google Cloud Build instance

As part of my build pipeline, I'm building and running a container on the GCB host. For validation purposes, I'd like to access a service on net container (say, a HTTP server) from outside GCB (say, from a GCE instance). Is that possible at…
mino
  • 3
  • 2