nazywamsiepawel / example-doctl-action

GitHub Actions for DigitalOcean Example Workflow

Home Page:https://doctl-action.do-api.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Actions for DigitalOcean Example

This repository contains an example workflow using the GitHub Action for DigitalOcean to build, tag, and deploy a container image to a DigitalOcean Kubernetes cluster.

Workflow

The example workflow will trigger on every push to this repo's master branch. For push, the workflow will:

  • Build the image from the included Dockerfile
  • Tag and push the image to a private DigitalOcean container registry
  • Retrieve the kubeconfig file for a DigitalOcean Kubernetes cluster
  • Create a deployment using config/deployment.yml

Notes

  • This example is using a Kubernetes cluster running v1.18.x with action-doctl@v2. (For older versions, see the v1 tag.)
  • Your Kubernetes cluster must have access to your private DigitalOcean container registry (doctl kubernetes cluster registry add <cluster>).
  • This example uses external-dns installed via Helm. This is an optional requirement, but you will need to adjust your config/deployment.yml file if it is not in use.

About

GitHub Actions for DigitalOcean Example Workflow

https://doctl-action.do-api.dev/

License:MIT License


Languages

Language:HTML 99.8%Language:Dockerfile 0.2%