Docker App Template for deploying to GKE using GitHub Actions
You need a version of Docker Desktop with Application Templates enabled.
Your GitHub account needs to be approved for GitHub Actions (currently in beta).
Then create an empty repo and set the following secrets (under Settings...Secrets):
GCP_SA_KEY_ENCODED
- base64 encoded JSON key for your GCP Service AccountGCP_PROJECT_ID
- ID of the GCP project where GKE will be deployedGCP_ZONE
- GCP zone for deploymentDOCKER_HUB_USERNAME
- username for Docker Hub pushesDOCKER_HUB_PASSWORD
- password for Docker Hub pushes
Copy gke-gh-library.yaml
from this repo to somewhere useful:
cp gke-gh-library.yaml /tmp
Update your App Template config in ~/.docker/application-template/preferences.yaml
to include the new template library.
This example includes the local demo libraries and the main Docker library:
apiVersion: v1alpha1
disableFeedback: false
kind: Preferences
repositories:
- name: gke-gh-library
url: file:///tmp/gke-gh-library.yaml
- name: library
url: https://docker-application-template.s3.amazonaws.com/production/v0.1.1/library.yaml
TODO