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: 3 months ago
JSON representation
DigitalOcean Kubectl Action
- Host: GitHub
- URL: https://github.com/arn-ob/do-kubectl-action
- Owner: arn-ob
- Created: 2022-11-22T05:11:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-10T18:20:04.000Z (7 months ago)
- Last Synced: 2025-03-20T18:43:03.313Z (3 months ago)
- Topics: actions, cluster, digitalocean, kubernetes
- Language: Dockerfile
- Homepage:
- Size: 32.2 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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: /:```