Skip to content

sixeyed/app-template-gke-gh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

app-template-gke-gh

Docker App Template for deploying to GKE using GitHub Actions

Pre-reqs

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 Account
  • GCP_PROJECT_ID - ID of the GCP project where GKE will be deployed
  • GCP_ZONE - GCP zone for deployment
  • DOCKER_HUB_USERNAME - username for Docker Hub pushes
  • DOCKER_HUB_PASSWORD - password for Docker Hub pushes

Setup

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

Run

TODO

About

Docker App Template for deploying to GKE using GitHub Actions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published