diff --git a/README.md b/README.md index 54b2413..fedbcc4 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,13 @@ # Development TODO: fill this out +### Kubernetes test deployment +```bash +./upload.sh +# sudo kubectl apply -f kube/test-deployment.yaml # Apply the test deployment if it wasn't already +sudo kubectl rollout restart deployment minecraft-ingress +``` +```bash +``` ### Nix shell with tmux In the nix flake there is a devshell setup with cargo and tmux. When using tmux it uses a set tmux server path, so only this project uses it. diff --git a/upload.sh b/upload.sh new file mode 100755 index 0000000..084f6f6 --- /dev/null +++ b/upload.sh @@ -0,0 +1,8 @@ +USERNAME="tamipes" +URL="git.tami.moe" +IMG_NAME="minecraft-ingress" +nix build --extra-experimental-features "flakes nix-command" .#docker-image +sudo docker load -i result +sudo docker image tag mc-ingress "$URL/$USERNAME/$IMG_NAME:testing" +sudo docker image push "$URL/$USERNAME/$IMG_NAME:testing" +