aboutsummaryrefslogtreecommitdiff
path: root/scripts/release.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/release.sh')
-rwxr-xr-xscripts/release.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/release.sh b/scripts/release.sh
new file mode 100755
index 0000000..4a77c55
--- /dev/null
+++ b/scripts/release.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env nix-shell
+#! nix-shell -p doctl -p kubectl -p curl -i bash
+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 -H "Authorization: $MI_TOKEN" --data "https://christine.website/blog.json" https://mi.within.website/blog/refresh