Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arn-ob/do-kubectl-action

DigitalOcean Kubectl Action
https://github.com/arn-ob/do-kubectl-action

actions cluster digitalocean kubernetes

Last synced: about 1 month ago
JSON representation

DigitalOcean Kubectl Action

Awesome Lists containing this project

README

        

# do-kubectl-action

Access your DigitalOcean cluster via kubectl in a Github Action.

## Example

```yaml
jobs:
update-image:
name: Build docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Push the build image to the DO kubectl
uses: arn-ob/do-kubectl-action@main
with:
do_access_token: ${{ secrets.DO_ACCESS_TOKEN }}
do_cluster_certificate: ${{ secrets.DO_CLUSTER_CERTIFICATE }}
do_deployment_name: ${{ secrets.DO_DEPLOYMENT_NAME }}
do_container_name: ${{ secrets.DO_CONTAINER_NAME }}
do_image_tag: ${{ secrets.DO_IMAGE_TAG }}
```

Example

```yaml
jobs:
update-image:
name: Build docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Push the build image to the DO kubectl
uses: arn-ob/do-kubectl-action@main
with:
do_access_token: ${{ secrets.DO_ACCESS_TOKEN }}
do_cluster_certificate: ${{ secrets.DO_CLUSTER_CERTIFICATE }}
do_deployment_name: deploy-app
do_container_name: deploy-app
do_image_tag: /:

```