This is an example of deploying to Helm using GitHub actions. View the guide.
-
Click the "Use this template" button to create a new fork of this repository.
-
Install deliverybot on the new repo.
-
Follow the Kubernetes setup guide below.
-
Push a commit to your new fork and watch the example workflows kick off!
-
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/.
-
Get yourself a Kubernetes cluster either using Google cloud or another provider. Google cloud instructions.
-
Create a service account for GitHub actions to have access to your cluster. Follow this gist.
-
Copy the created service account into your GitHub repository secrets with the name
KUBECONFIG
. -
Now we can create the
example-helm
namespace in Kubernetes with:
kubectl create ns example-helm
config/ # Contains value files per environment.
.github/workflows/cd.yml # GitHub action workflow.
.github/deploy.yml # Deliverybot configuration file.