feat: publish script and cleanup

This commit is contained in:
Andrejus
2021-05-02 21:53:29 +01:00
parent fb50593834
commit 1f569c7e09
22 changed files with 144 additions and 58 deletions

11
scripts/publish.sh Normal file → Executable file
View File

@@ -1,8 +1,11 @@
#!/usr/bin/env bash
set -eo pipefail
#
# Script that publishes the set up script for new installations.
#
BUCKET=${BUCKET:-"dots.andrejus.dev"}
echo "Publishing..."
NAME=$(basename "$0")
REL_DIR=$(dirname "$0")
ABS_DIR=$(readlink -f $REL_DIR/../) # Scripts are nested inside of /scripts
# Publish setup script to public bucket
gsutil cp "$ABS_DIR/scripts/setup.sh" "gs://$BUCKET/setup.sh"