Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 1.58 KB

File metadata and controls

27 lines (14 loc) · 1.58 KB

gitops-style-cicd-with-gcp-app-repo

This repo contains code that creates a continuous integration and delivery (CI/CD) pipeline on Google Cloud [app]. To run this repo you should also clone the env repo: gitops-style-cicd-with-gcp-env-repo.

It is necessary to configure Cloud Build to automatically run a small unit test, build the container image, and then push it to Artifact Registry. Pushing a new commit to Cloud Source Repositories automatically triggers this pipeline. The cloudbuild.yaml file included in the code is the pipeline's configuration.

This tutorial uses two Git repositories:

  • app repository: contains the source code of the application itself
  • env repository: contains the manifests for the Kubernetes Deployment

image

image

Repo

This repo follows the GitOps Style CD with Cloud Build tutorial but instead of using Cloud Source Repositories, it uses GitHub.

This pipeline does not implement a validation mechanism before the deployment. If you use GitHub, Bitbucket, or GitLab, you can modify the pipeline to use a Pull Request for this purpose.

Resources

GitOps Style continuous delivery with Cloud Build

Accessing GitHub from a build via SSH keys