mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
try make autodeploy
This commit is contained in:
@@ -46,3 +46,26 @@ jobs:
|
|||||||
# with:
|
# with:
|
||||||
# url: ${{ secrets.CONTAINER_WEBHOOK }}
|
# url: ${{ secrets.CONTAINER_WEBHOOK }}
|
||||||
# method: 'POST'
|
# method: 'POST'
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
name: Deploy to Kubernetes cluster
|
||||||
|
runs-on: k8s-route
|
||||||
|
if: github.ref == 'refs/heads/dev'
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout source code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
-
|
||||||
|
name: Configure the Kubernetes context
|
||||||
|
uses: azure/k8s-set-context@v2
|
||||||
|
with:
|
||||||
|
method: service-account
|
||||||
|
k8s-url: ${{ secrets.KUBERNETES_URL }}
|
||||||
|
k8s-secret: ${{ secrets.KUBERNETES_SECRET }}
|
||||||
|
|
||||||
|
# TODO: looks very unsafe for meed, need review about migrate to GH Action "azure/k8s-deploy"
|
||||||
|
-
|
||||||
|
name: Deploy to the Kubernetes cluster
|
||||||
|
run: |
|
||||||
|
kubectl -n telegram-bot rollout restart deploy bot
|
||||||
|
|||||||
Reference in New Issue
Block a user