Skip to content

chore: added missing vehicles and tokio-console for debugging #104

chore: added missing vehicles and tokio-console for debugging

chore: added missing vehicles and tokio-console for debugging #104

Workflow file for this run

name: deploy to kubernetes
on:
push:
branches:
- stable
paths:
- 'src/**'
- '.github/workflows/kubernetes.yaml'
- 'Cargo.toml'
- 'Dockerfile'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: login to docker
run: docker login ghcr.io -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Build container image
run: |
docker build . --tag ghcr.io/callieve/okto/okto-bot:${{ github.sha }}
docker image tag ghcr.io/callieve/okto/okto-bot:${{ github.sha }} ghcr.io/callieve/okto/okto-bot:latest
- name: Push image to Docker Hub
run: |
docker push ghcr.io/callieve/okto/okto-bot:${{ github.sha }}
docker push ghcr.io/callieve/okto/okto-bot:latest
- name: Save DigitalOcean kubeconfig
uses: digitalocean/action-doctl@master
env:
DIGITALOCEAN_ACCESS_TOKEN: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
with:
args: kubernetes cluster kubeconfig show k8s-okto > $GITHUB_WORKSPACE/.kubeconfig
- name: Deploy to DigitalOcean Kubernetes
run: kubectl --kubeconfig=$GITHUB_WORKSPACE/.kubeconfig -n discord-bots set image statefulset/stateful-okto okto-bot=ghcr.io/callieve/okto/okto-bot:${{ github.sha }}