Skip to content

Commit

Permalink
change to k0s deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
GregTCLTK committed Oct 21, 2023
1 parent 76dc46d commit d26c12c
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/publish.yml
Expand Up @@ -58,11 +58,18 @@ jobs:
push: true
tags: "ghcr.io/bbn-holding/bbn-bot:latest"

- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: cd bbn/ && docker compose up -d --pull always bbn-bot
- name: Set up Kubectl
run: |
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
sudo mv kubectl /usr/local/bin/
- name: Configure Kubernetes credentials
env:
KUBECONFIG_DATA: ${{ secrets.KUBE_CREDENTIALS }}
run: |
echo "$KUBECONFIG_DATA" | base64 --decode > kubeconfig.yaml
- name: Restart Rollout
run: |
kubectl rollout restart deployment bbn-bot -n bbn-one --kubeconfig=kubeconfig.yaml

0 comments on commit d26c12c

Please sign in to comment.