Skip to content
Example deployment automation with Kubernetes and GitHub actions.
JavaScript Dockerfile
Branch: master
Clone or download

Latest commit

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github PR cleanup (#4) Oct 26, 2019
config PR cleanup (#4) Oct 26, 2019
Dockerfile Full example with docker build (#1) Sep 29, 2019
LICENSE Initial example helm Sep 1, 2019
README.md Broken link update (#6) Dec 24, 2019
index.js Full example with docker build (#1) Sep 29, 2019

README.md

Deliverybot Helm Example

This is an example of deploying to Helm using GitHub actions. View the guide.

  1. Click the "Use this template" button to create a new fork of this repository.

  2. Install deliverybot on the new repo.

  3. Follow the Kubernetes setup guide below.

  4. Push a commit to your new fork and watch the example workflows kick off!

  5. Visit the deliverybot app and manually deploy.

Note: If you don't want to trigger a deployment using Deliverybot, you can do this just with a curl command to the GitHub deployments api https://developer.github.com/v3/repos/deployments/.

Kubernetes setup

  1. Get yourself a Kubernetes cluster either using Google cloud or another provider. Google cloud instructions.

  2. Create a service account for GitHub actions to have access to your cluster. Follow this gist.

  3. Copy the created service account into your GitHub repository secrets with the name KUBECONFIG.

  4. Now we can create the example-helm namespace in Kubernetes with:

kubectl create ns example-helm

Structure

config/                   # Contains value files per environment.
.github/workflows/cd.yml  # GitHub action workflow.
.github/deploy.yml        # Deliverybot configuration file.
You can’t perform that action at this time.