aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-11-15 17:01:04 +0000
committerGravatar Joe Banks <[email protected]>2020-11-15 17:01:04 +0000
commit5f93c9b9acd867c5f3f0dae2f5ea20db0332fd7e (patch)
tree97d1188728755e303b2c267d08af8cf64c2de319
parentAdd deployment manifest (diff)
Add auto-deploy to k8s step
-rw-r--r--.github/workflows/deploy.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 65b7959..af0160d 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -43,3 +43,17 @@ jobs:
tags: |
ghcr.io/python-discord/metricity:latest
ghcr.io/python-discord/metricity:${{ steps.sha_tag.outputs.tag }}
+
+ - name: Authenticate with Kubernetes
+ uses: azure/k8s-set-context@v1
+ with:
+ method: kubeconfig
+ kubeconfig: ${{ secrets.KUBECONFIG }}
+
+ - name: Deploy to Kubernetes
+ uses: Azure/k8s-deploy@v1
+ with:
+ manifests: |
+ deployment.yaml
+ images: 'ghcr.io/python-discord/metricity:${{ steps.sha_tag.outputs.tag }}'
+ kubectl-version: 'latest'