16 Commits
1.0.3 ... main

Author SHA1 Message Date
319e77355f fixed tar command 2025-11-18 19:59:00 -05:00
49a93eded8 flow updates 2025-05-29 17:50:34 -04:00
27138013ba flow update 2025-04-25 13:33:36 -04:00
7c6145f62b flow update 2025-04-24 20:02:02 -04:00
eaf14281a2 flow 2025-04-16 21:13:38 -04:00
405e083e0d flow update 2025-04-16 20:00:32 -04:00
2d21fa1100 flow update 2025-04-16 19:34:02 -04:00
077d842a3c flow updates 2025-04-16 17:57:49 -04:00
0ee019c890 flow update 2025-04-15 01:52:41 -04:00
8ebd780258 flows update 2025-04-15 01:50:55 -04:00
6fd3e65cc1 version: 1.0.6 2025-04-13 23:01:30 -04:00
ba36d4d72b upgraded flow 2025-04-13 22:02:15 -04:00
ed4b625c48 version: 1.0.5 2025-04-12 16:58:22 -04:00
a2f156db69 upgraded flows 2025-04-12 16:58:16 -04:00
fecf5e589f version: 1.0.4 2025-03-26 13:55:20 -04:00
510a52d492 updated flow 2025-03-26 13:55:12 -04:00
4 changed files with 27 additions and 49 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
GITEA_TOKEN=

71
flow
View File

@ -1,60 +1,37 @@
#!/bin/bash #!/bin/bash
# Colors for that visual bass drop 🎵 # Flows
RED='\033[31m' source ./flows/base
GREEN='\033[32m' source ./flows/git
YELLOW='\033[33m' source ./flows/packaging
BLUE='\033[34m'
MAGENTA='\033[35m'
CYAN='\033[36m'
RESET='\033[0m'
# Configuration
BUILD_DIRECTORY="build"
# Vars
BUILD_DIRECTORY="web"
GITEA_ORGANIZATION="agreego" GITEA_ORGANIZATION="agreego"
GITEA_REPOSITORY="site" GITEA_REPOSITORY="site"
# Source the release script
source "flows/release"
env() {
# Check if GITEA_TOKEN is set
if [ -z "$GITEA_TOKEN" ]; then
# If not set, try to get it from kubectl
GITEA_TOKEN=$(kubectl get secret -n cellular gitea-git -o jsonpath='{.data.token}' | base64 --decode)
if [ -z "$GITEA_TOKEN" ]; then
echo -e "❌ ${RED}GITEA_TOKEN is not set and couldn't be retrieved from kubectl${RESET}" >&2
exit 1
fi
export GITEA_TOKEN
fi
echo -e "💰 ${GREEN}Environment variables set${RESET}"
}
build() { 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=$(get-version) local version
version=$(get-version) || return $?
echo -e "📦 ${CYAN}Building site version ${GREEN}v$version${RESET}..." info "Building site version v$version..."
# Create the tarball # Create the tarball
tar -czf "$PACKAGE_DIRECTORY/$GITEA_REPOSITORY.tar.gz" -C "$BUILD_DIRECTORY" . COPYFILE_DISABLE=1 tar -czf "$PACKAGE_DIRECTORY/$GITEA_REPOSITORY.tar.gz" -C "$BUILD_DIRECTORY" . || return 2
success "Build complete"
echo -e "✨ ${GREEN}Build complete${RESET}"
} }
case "$1" in site-usage() {
env) env;; printf "build\tBuild the site.\n"
build) env; build;; }
tag) env; tag;;
package) env; package;; site-flow() {
release) env; release;; case "$1" in
*) build) build; return $?;;
echo "Usage: $0 {env|build|tag|package|release}" *) return 1 ;;
exit 1;; esac
esac }
register-flow "site-usage" "site-flow"
dispatch "$@"

2
flows

Submodule flows updated: 5abd1b1390...e154758056

View File

@ -1 +1 @@
1.0.3 1.0.6