Compare commits

...

12 Commits
1.0.1 ... 1.0.7

Author SHA1 Message Date
70f3d30258 version: 1.0.7 2025-04-14 12:03:07 -04:00
406466454e excluding flows from jspg release 2025-04-14 12:03:01 -04:00
2a9d51fa77 version: 1.0.6 2025-04-14 11:24:22 -04:00
ae90137308 updated flows 2025-04-14 11:24:18 -04:00
d22a8669ef version: 1.0.5 2025-04-14 11:19:38 -04:00
b32c17a4f5 updated flow 2025-04-14 11:19:28 -04:00
79cce357e2 version: 1.0.4 2025-04-13 23:03:58 -04:00
512fa28b91 failed commit 2025-04-13 23:03:53 -04:00
a36120459b version: 1.0.3 2025-04-13 22:58:52 -04:00
19734a5b0d failed commit 2025-04-13 22:58:47 -04:00
d4aa2af6cf version: 1.0.2 2025-04-13 22:57:15 -04:00
c4c4796ab0 failed commit 2025-04-13 22:57:11 -04:00
3 changed files with 22 additions and 7 deletions

25
flow
View File

@ -11,10 +11,24 @@ POSTGRES_VERSION="17"
POSTGRES_CONFIG_PATH="/opt/homebrew/opt/postgresql@${POSTGRES_VERSION}/bin/pg_config"
DEPENDENCIES=(cargo git icu4c pkg-config "postgresql@${POSTGRES_VERSION}")
CARGO_DEPENDENCIES=(cargo-pgrx==0.14.0)
PACKAGE_NAME="jspg"
GITEA_ORGANIZATION="cellular"
GITEA_REPOSITORY="jspg"
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}"
}
pgrx-prepare() {
echo -e "${BLUE}Initializing pgrx...${RESET}"
# Explicitly point to the postgresql@${POSTGRES_VERSION} pg_config, don't rely on 'which'
@ -38,7 +52,7 @@ build() {
local version
version=$(get-version) || return 1
local package_dir="./package"
local tarball_name="${GITEA_REPOSITORY}-src-v${version}.tar.gz"
local tarball_name="${GITEA_REPOSITORY}.tar.gz"
local tarball_path="${package_dir}/${tarball_name}"
echo -e "📦 Creating source tarball v$version for ${GITEA_REPOSITORY} in $package_dir..."
@ -49,7 +63,7 @@ build() {
# Create the source tarball excluding specified patterns
echo -e " ${CYAN}Creating tarball: ${tarball_path}${RESET}"
if tar --exclude='.git*' --exclude='./target' --exclude='./package' -czf "${tarball_path}" .; then
if tar --exclude='.git*' --exclude='./target' --exclude='./package' --exclude='./flows' --exclude='./flow' -czf "${tarball_path}" .; then
echo -e "✨ ${GREEN}Successfully created source tarball: ${tarball_path}${RESET}"
else
echo -e "❌ ${RED}Failed to create source tarball.${RESET}" >&2
@ -98,13 +112,14 @@ jspg-usage() {
jspg-flow() {
case "$1" in
env) env; return 0;;
prepare) base prepare; cargo-prepare; pgrx-prepare; return 0;;
build) build; return 0;;
install) base prepare; cargo-prepare; pgrx-prepare; install "$@"; return 0;;
reinstall) base prepare; cargo-prepare; pgrx-prepare; install "$@"; return 0;;
test) test; return 0;;
package) package; return 0;;
release) release; return 0;;
package) env; package; return 0;;
release) env; release; return 0;;
clean) clean; return 0;;
*) return 1 ;;
esac

2
flows

Submodule flows updated: 2487aa6a25...db55335254

View File

@ -1 +1 @@
1.0.1
1.0.7