fix: bug with dragging offscreen, locked stations and partial recalc … #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy to kubernetes | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- 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/metro-map-editor/metro-map-site:${{ github.sha }} | |
docker image tag ghcr.io/callieve/metro-map-editor/metro-map-site:${{ github.sha }} ghcr.io/callieve/metro-map-editor/metro-map-site:latest | |
- name: Push image to Docker Hub | |
run: | | |
docker push ghcr.io/callieve/metro-map-editor/metro-map-site:${{ github.sha }} | |
docker push ghcr.io/callieve/metro-map-editor/metro-map-site:latest | |
- name: Install doctl | |
uses: digitalocean/action-doctl@v2 | |
with: | |
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} | |
- name: Deploy to DigitalOcean Kubernetes | |
run: | | |
doctl kubernetes cluster kubeconfig save k8s-okto | |
kubectl -n default set image statefulset/metro-map-site metro-map-site=ghcr.io/callieve/metro-map-editor/metro-map-site:${{ github.sha }} |