Skip to content

Commit

Permalink
Deploy on push
Browse files Browse the repository at this point in the history
  • Loading branch information
ezynda3 committed Feb 16, 2024
1 parent 2cfde18 commit 4edb174
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,17 @@ jobs:
tags: |
mark3labs/louper-web:${{ steps.vars.outputs.version }}
mark3labs/louper-web:latest
- 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 do-nyc1-hosnian-prime

- name: Deploy to DigitalOcean Kubernetes
run: kubectl apply -f $GITHUB_WORKSPACE/.k8s

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

0 comments on commit 4edb174

Please sign in to comment.