aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-11-15 19:56:51 +0000
committerGravatar Joe Banks <[email protected]>2020-11-15 19:56:51 +0000
commit2cba93b6b0cedf98eaf244cf42e1b3c3faf64615 (patch)
treecf9a34e174b1563759c3d8364dae62d17a958a1a
parentAdd Kubernetes deployment manifest (diff)
Add deploy steps to GitHub Actions
-rw-r--r--.github/workflows/lint-test-deploy.yml (renamed from .github/workflows/lint-test-build.yml)14
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/lint-test-build.yml b/.github/workflows/lint-test-deploy.yml
index c63f78ff6..b4003ddc1 100644
--- a/.github/workflows/lint-test-build.yml
+++ b/.github/workflows/lint-test-deploy.yml
@@ -155,3 +155,17 @@ jobs:
tags: |
ghcr.io/python-discord/bot:latest
ghcr.io/python-discord/bot:${{ 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/bot:${{ steps.sha_tag.outputs.tag }}'
+ kubectl-version: 'latest'