aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/docker.sh6
-rwxr-xr-xscripts/nixrun.sh4
-rwxr-xr-xscripts/release.sh10
3 files changed, 10 insertions, 10 deletions
diff --git a/scripts/docker.sh b/scripts/docker.sh
deleted file mode 100755
index bb9d91a..0000000
--- a/scripts/docker.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-set -e
-
-docker build -t xena/site .
-exec docker run --rm -itp 5030:5000 -e PORT=5000 xena/site
diff --git a/scripts/nixrun.sh b/scripts/nixrun.sh
deleted file mode 100755
index 1ea655d..0000000
--- a/scripts/nixrun.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-cd "$(dirname "$0")"/..
-./bin/site
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