Steps for what I did to accomplish part 1:
- Click on Actions on the top bar
- Select
Java with Gradle
-> Configure - Paste in code from Canvas to the
.github/workflows/gradle.yml
- Changed main -> master (b/c used master on initial commit)
Challenges:
- I had to cancel the workflow and restart it after ~15 minutes of the build being queued. I did this by pressing the red button for
Cancel Workflow
and then on th left side, I pressed the recycle button.
Challenges:
- Had to figure out where to make the changes to the deployment file. I had to add a new workflow -> Deployment to GKE.
Challenges:
- For the
GKE_SA_KEY
, I had only copied the private key, and had to google a json parsing error to find out it should have been the entire json file that was downloaded - I ran into permission issues where the CD pipeline did not have access. I had to research into what the
container.clusters.get
permission is was and add appropriate permissions to the account specified in the json client