flow update

This commit is contained in:
2026-02-24 17:41:09 -05:00
parent 319e77355f
commit e0899c1bf8
3 changed files with 9 additions and 10 deletions

2
.env
View File

@ -1 +1 @@
GITEA_TOKEN= GITEA_TOKEN=3d70c23673517330623a5122998fb304e3c73f0a

15
flow
View File

@ -3,6 +3,7 @@
# Flows # Flows
source ./flows/base source ./flows/base
source ./flows/git source ./flows/git
source ./flows/kube
source ./flows/packaging source ./flows/packaging
# Vars # Vars
@ -14,24 +15,22 @@ build() {
# Create build directory if it doesn't exist # Create build directory if it doesn't exist
mkdir -p "$PACKAGE_DIRECTORY" mkdir -p "$PACKAGE_DIRECTORY"
# Get version # Get version
local version version=$(get-version) || exit $?
version=$(get-version) || return $?
info "Building site version v$version..." info "Building site version v$version..."
# Create the tarball COPYFILE_DISABLE=1 tar -czf "$PACKAGE_DIRECTORY/$GITEA_REPOSITORY.tar.gz" -C "$BUILD_DIRECTORY" . || abort "Failed to create tarball" 2
COPYFILE_DISABLE=1 tar -czf "$PACKAGE_DIRECTORY/$GITEA_REPOSITORY.tar.gz" -C "$BUILD_DIRECTORY" . || return 2 success "Build complete" && return 0
success "Build complete"
} }
site-usage() { site-usage() {
printf "build\tBuild the site.\n" echo "build|Build the site."
} }
site-flow() { site-flow() {
case "$1" in case "$1" in
build) build; return $?;; build) build; return $?;;
*) return 1 ;; *) return 127 ;;
esac esac
} }
register-flow "site-usage" "site-flow" register-flow "site"
dispatch "$@" dispatch "$@"

2
flows

Submodule flows updated: e154758056...9c769152a7