https://github.com/do-community/example-doctl-action
GitHub Actions for DigitalOcean Example Workflow
https://github.com/do-community/example-doctl-action
Last synced: over 1 year ago
JSON representation
GitHub Actions for DigitalOcean Example Workflow
- Host: GitHub
- URL: https://github.com/do-community/example-doctl-action
- Owner: do-community
- License: mit
- Created: 2019-01-16T17:08:25.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2022-04-28T18:11:17.000Z (about 4 years ago)
- Last Synced: 2025-01-16T17:00:52.036Z (over 1 year ago)
- Language: HTML
- Homepage: https://doctl-action.do-api.dev/
- Size: 105 KB
- Stars: 172
- Watchers: 7
- Forks: 76
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Actions for DigitalOcean Example
This repository contains an example workflow using the [GitHub Action for DigitalOcean](https://github.com/digitalocean/action-doctl) to build, tag, and deploy a container image to a DigitalOcean Kubernetes cluster.
## Workflow
The [example workflow](.github/workflows/workflow.yaml) will trigger on every push to this repo's `master` branch. For push, the workflow will:
* Build the image from [the included `Dockerfile`](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](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](https://github.com/do-community/example-doctl-action/tree/v1).)
* Your Kubernetes cluster must have access to your private DigitalOcean container registry (`doctl kubernetes cluster registry add `).
* This example uses `external-dns` [installed via Helm](https://github.com/helm/charts/tree/master/stable/external-dns). This is an optional requirement, but you will need to adjust your `config/deployment.yml` file if it is not in use.