CI Workflow (Pt. 1)
Pulled gradle.yml from Github workflow
Build with Gradle
Comment added to Line 51 to allow push
CD Workflow (Pt. 2)
Create GKE cluster
Enable APIs
Find GKE Project ID
Create Service Account
Grant Permissions
Create New Private Key
GKE_PROJECT and GKE_SA_KEY secrets created
Trigger CD Deployment with new Github release
GKE Workloads, Service, and Ingress
Gumball App running from GKE
spring-gumball ci/cd example
This example demonstrates the following two GitHub Workflows.
-
https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
-
https://github.com/google-github-actions/setup-gcloud/tree/master/example-workflows/gke
Build Dependencies
- Gradle 5.6
- JDK 11