This is the back-end of a simple 2-tier app to demonstrate using Google Container Registry (GCR) and Google Container Engine (GKE) with Shippable. To see the full functionality of the app, use the same steps to deploy the front-end of the app which is also on Aye0Aye called micro-www.
- Create a project called 'shippable-gke' within Google Cloud Platform
- Fork the aye0aye/micro-api repository, e.g. to your GitHub account
- Log into Shippable and enable a project for your fork
- Create an Account Integration for GCR called 'GCR-shippable-gke' and assign it to your project
Note: In this sample, you will be working with branch "google-gcr-gke"
- Uses Docker to build the CI environment from a Dockerfile, pulling the base image from a public repository "aye0aye/micro-image"
- Executes some basic CI tests
- Stores the test results and code coverage report
- Upon successful CI build, pushes the newly built Docker image to Google Container Registry
In the shippable.yml, you should't need to change any of the environment variables:
- SERVICE=micro-api
- PROJECT_ID=shippable-gke
- REGISTRY_ACCOUNT=gcr.io/$PROJECT_ID