-
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
- Gradle 5.6
- JDK 11
This section goes over deploying to Google Kubernetes Engine.
A standard cluster was built with the following conifgurations:
- GCP Project: cmpe172
- GKE Cluster Name: cmpe172
- GKE Cluster Zone: us-central1-c
- Cloud IAM roles added:
- Kubernetes Engine Developer - Full access to Kubernetes API objects inside Kubernetes Clusters.
- Storage Admin - Full control of GCS resources.
- Add the following secrets to your repository's secrets:
- GKE_PROJECT: Google Cloud project ID
- GKE_SA_KEY: The content of the service account JSON file
Kustomize is an optional tool used for managing YAML specs. After creating a kustomization file, the workflow below can be used to dynamically set fields of the image and pipe in the result to kubectl.