commit a590b4f839e72844c4e3db419c7ad20eda8c0a85 parent fdfa433ea93264e881ce6fd6020e485be43b9f2e Author: Arjoonn Sharma <arjoonn@midpathsoftware.com> Date: Fri, 27 Mar 2026 13:59:55 +0530 Friday 27 March 2026 01:59:55 PM IST Diffstat:
| M | scripts/build_image.sh | | | 2 | +- |
| M | scripts/publish_site.sh | | | 2 | +- |
| M | secrets/bin/set_env.sh | | | 4 | ++-- |
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/build_image.sh b/scripts/build_image.sh @@ -12,7 +12,7 @@ echo "Building Docker image '${IMAGE_NAME}'..." # The repo is NOT baked into the image; it is mounted at runtime via -v. docker build -t "${IMAGE_NAME}" - <<'DOCKERFILE' FROM alpine:latest -RUN apk add --no-cache git ca-certificates stagit bash lowdown +RUN apk add --no-cache git ca-certificates stagit bash lowdown curl WORKDIR /work CMD ["/bin/sh"] DOCKERFILE diff --git a/scripts/publish_site.sh b/scripts/publish_site.sh @@ -9,7 +9,7 @@ export PUBLIC_DIR="${REPO_DIR}/www_jci/public" publish() { echo "Publishing site" - cd $REPO_DIR + cd "$REPO_DIR" pwd md5sum secrets/prod.key md5sum secrets/prod.enc diff --git a/secrets/bin/set_env.sh b/secrets/bin/set_env.sh @@ -3,6 +3,6 @@ BIN=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) SECRETS=$(echo "$BIN/..") NAME=$1 -(bash $BIN/ensure_bins.sh) +(bash "$BIN/ensure_bins.sh") PATH="$PATH:$HOME/.local/bin:$BIN" -export $(SOPS_AGE_KEY_FILE=$SECRETS/$NAME.key sops --decrypt --input-type dotenv --output-type dotenv $SECRETS/$NAME.enc | xargs) +export $(SOPS_AGE_KEY_FILE="$SECRETS/$NAME.key" sops --decrypt --input-type dotenv --output-type dotenv "$SECRETS/$NAME.enc" | xargs)