bkw / click-to-deploy

Source for Google Click to Deploy solutions listed on Google Cloud Marketplace.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

Source for Google Click to Deploy solutions listed on Google Cloud Marketplace.

Disclaimer

This is not an officially supported Google product.

Cloud Build CI

This repository uses Cloud Build for continuous integration. The Cloud Build configuration file is located at cloudbuild-k8s.yaml for Kubernetes applications and cloudbuild-vm.yaml for VM applications.

Manually run the build for K8s applications

Cloud Build can be triggered manually. Run the following command from the root directory of this repository:

export GCP_PROJECT_TO_RUN_CLOUD_BUILD=<>
export GKE_CLUSTER_NAME=<>
export GKE_CLUSTER_LOCATION=<e.g. us-central1>
export SOLUTION_NAME=<e.g. wordpress>

gcloud builds submit . \
  --config cloudbuild-k8s.yaml \
  --substitutions _CLUSTER_NAME=$GKE_CLUSTER_NAME,_CLUSTER_LOCATION=$GKE_CLUSTER_LOCATION,_SOLUTION_NAME=$SOLUTION_NAME \
  --project $GCP_PROJECT_TO_RUN_CLOUD_BUILD \
  --verbosity info

Build steps

  1. Build click-to-deploy Docker image. The image contains the necessary tools required by the CI pipeline.
  2. Generate Cloud Build configuration for an application defined in $_SOLUTION_NAME variable. The configuration contains all required steps to test the application.
  3. Run additional Cloud Build instance using the generated configuration.

About

Source for Google Click to Deploy solutions listed on Google Cloud Marketplace.

License:Apache License 2.0


Languages

Language:Ruby 51.8%Language:Shell 31.4%Language:Makefile 7.5%Language:Dockerfile 4.0%Language:HTML 3.4%Language:Python 2.0%