cwqt/GCP Cloud Build

Builds a docker image using Google Cloud Build and pushes it to Google Container Registry.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
gcp-project-idThe GCP Project ID to use.yes
gcp-service-account-keyBase64-encoded key file to use to authenticate against Google Cloud Services.yes
gcp-cloud-storage-bucketGoogle Cloud Storage Bucket used to temporarily store build input files. If not specified, the default value is ${gcp-project-id}_cloudbuild.no
gcp-cloud-build-machine-typeThe machine type to use for the buildno
gcp-cloud-run-service-nameThe Google Cloud Run container nameyes
gcp-cloud-run-resources-cpu-memThe resources that will be used for the Cloud Run container, e.g. "4,2Gi", default "1,512Mi"no
gcp-cloud-run-scaling-min-maxThe Google Cloud Run container min instances & max instances, e.g. 0,1no
gcp-cloud-run-portThe port of the container listening for traffic that should be exposed to :443 / :8080yes
gcp-cloud-run-max-concurrencyThe maximum concurrent requests that can be handled by each instance before scalingno
gcp-cloud-run-cpu-idleIf the container should scale down to zero if there's no trafficno
gcp-secrets-manager-secret-idThe Google Cloud Secrets Manager secret to be referencedno
gcp-secrets-manager-secret-env-keyprocess.env[gcp-secrets-manager-secret-env-key] = gcp-secrets-manager-secret-idno
gcp-cloud-run-regionThe Google Cloud Run region to use (e.g. europe-west2). Defaults to europe-west2no
gcp-artifact-registry-repositoryThe Google Artifact Registry repository nameyes
gcp-artifact-registry-regionThe Google Container Registry region to use (e.g. europe-west2). Defaults to europe-west2no
gcp-vpc-connector-nameThe VPC connector name to the projects VPC networkno
image-nameThe name of the built image.yes
image-pathThe path to the Dockerfile, e.g. ./customDockerfileno
image-sourcesA comma-separated list of files and folders to use as build source. Patterns such as * and ** are supported. Paths are relative to the repository root. All matched files and folders are copied to a common directory before being passed to Cloud Build.yes
image-tag-formatThe format to tag the built image with, if the build was caused by a commit. Builds caused by a tag are always labelled with that tag. The format string can contain the following list of parameters. All other parts of the string are treated as constants. Make sure you only use characters allowed in a docker tag. Defaults to "$BRANCH-$SHA-$YYYY.$MM.$DD-$HH.$mm.$SS", for example "main-4e83ab-2021.04.22-09.08.12". Time is based on the server timezone. $BRANCH The branch name, normalized. $SHA The 7-digit SHA of the commit $YYYY The year in 4-digit format $MM The month in 2-digit format $DD The day in 2-digit format $HH The hour in 2-digit format (24h) $mm The minute in 2-digit-format $SS The second in 2-digit-formatno
image-tag-latestWhether the built image will be appended with latest. Defaults to false.no
image-tag-additional-tagsA comma-separated list of additional tags to use for the built image. Defaults to false.no
namedescription
full-image-nameContains the full image name with host, project ID and image name without tags.
image-tagsContains a comma-separated list of tags for the built image.
cloud-run-uriThe URI of the deployed Cloud Run container