forked from cadey/xesite
13 lines
550 B
Bash
Executable File
13 lines
550 B
Bash
Executable File
#!/usr/bin/env nix-shell
|
|
#! nix-shell -p doctl -p kubectl -p curl -i bash
|
|
#! nix-shell -I nixpkgs=https://releases.nixos.org/nixpkgs/nixpkgs-21.03pre252431.4f3475b113c/nixexprs.tar.xz
|
|
|
|
nix-env -if ./nix/dhall-yaml.nix
|
|
doctl kubernetes cluster kubeconfig save kubermemes
|
|
dhall-to-yaml-ng < ./site.dhall | kubectl apply -n apps -f -
|
|
kubectl rollout status -n apps deployment/christinewebsite
|
|
kubectl apply -f ./k8s/job.yml
|
|
sleep 10
|
|
kubectl delete -f ./k8s/job.yml
|
|
curl --http1.1 -H "Authorization: $MI_TOKEN" https://mi.within.website/api/blog/refresh
|