From e0899c1bf8ed9b5915bc17165bebfac39a178377 Mon Sep 17 00:00:00 2001 From: Alex Groleau Date: Tue, 24 Feb 2026 17:41:09 -0500 Subject: [PATCH] flow update --- .env | 2 +- flow | 15 +++++++-------- flows | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.env b/.env index b0428ea..afc38fe 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -GITEA_TOKEN= +GITEA_TOKEN=3d70c23673517330623a5122998fb304e3c73f0a diff --git a/flow b/flow index 2041317..ffb36ab 100755 --- a/flow +++ b/flow @@ -3,6 +3,7 @@ # Flows source ./flows/base source ./flows/git +source ./flows/kube source ./flows/packaging # Vars @@ -14,24 +15,22 @@ build() { # Create build directory if it doesn't exist mkdir -p "$PACKAGE_DIRECTORY" # Get version - local version - version=$(get-version) || return $? + version=$(get-version) || exit $? info "Building site version v$version..." - # Create the tarball - COPYFILE_DISABLE=1 tar -czf "$PACKAGE_DIRECTORY/$GITEA_REPOSITORY.tar.gz" -C "$BUILD_DIRECTORY" . || return 2 - success "Build complete" + COPYFILE_DISABLE=1 tar -czf "$PACKAGE_DIRECTORY/$GITEA_REPOSITORY.tar.gz" -C "$BUILD_DIRECTORY" . || abort "Failed to create tarball" 2 + success "Build complete" && return 0 } site-usage() { - printf "build\tBuild the site.\n" + echo "build|Build the site." } site-flow() { case "$1" in build) build; return $?;; - *) return 1 ;; + *) return 127 ;; esac } -register-flow "site-usage" "site-flow" +register-flow "site" dispatch "$@" \ No newline at end of file diff --git a/flows b/flows index e154758..9c76915 160000 --- a/flows +++ b/flows @@ -1 +1 @@ -Subproject commit e1547580568c976bc4d310d499edb6ea38c89f34 +Subproject commit 9c769152a701a32c8391ffe4783fa592dbbb955c