Skip to content

Commit

Permalink
Add manual rollout workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ezynda3 committed Mar 19, 2024
1 parent 95871ae commit 3890533
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/rollout.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Rollout

on: workflow_dispatch

jobs:
docker:
runs-on: ubuntu-latest

steps:
- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

- name: Save DigitalOcean kubeconfig with short-lived credentials
run: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 662138bb-8236-4da5-8c6d-c602fb6eef82

- name: Deploy to DigitalOcean Kubernetes
run: kubectl rollout restart deployment/louper

- name: Verify deployment
run: kubectl rollout status deployment/louper

0 comments on commit 3890533

Please # to comment.