flow updates

This commit is contained in:
2025-05-29 17:51:16 -04:00
parent 6ef7e0c55e
commit 8ec6a5b58a
4 changed files with 6 additions and 22 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
GITEA_TOKEN=

View File

@ -7,7 +7,6 @@ edition = "2021"
pgrx = "0.14.0" pgrx = "0.14.0"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0" serde_json = "1.0"
jsonschema = "0.29.1"
lazy_static = "1.5.0" lazy_static = "1.5.0"
boon = "0.6.1" boon = "0.6.1"

20
flow
View File

@ -14,21 +14,6 @@ CARGO_DEPENDENCIES=(cargo-pgrx==0.14.0)
GITEA_ORGANIZATION="cellular" GITEA_ORGANIZATION="cellular"
GITEA_REPOSITORY="jspg" 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
error "GITEA_TOKEN is not set and couldn't be retrieved from kubectl" >&2
return 2
fi
export GITEA_TOKEN
fi
success "Environment variables set"
}
pgrx-prepare() { pgrx-prepare() {
info "Initializing pgrx..." info "Initializing pgrx..."
# Explicitly point to the postgresql@${POSTGRES_VERSION} pg_config, don't rely on 'which' # Explicitly point to the postgresql@${POSTGRES_VERSION} pg_config, don't rely on 'which'
@ -131,17 +116,16 @@ jspg-usage() {
jspg-flow() { jspg-flow() {
case "$1" in case "$1" in
env) env; return $?;;
prepare) prepare && cargo-prepare && pgrx-prepare; return $?;; prepare) prepare && cargo-prepare && pgrx-prepare; return $?;;
build) build; return $?;; build) build; return $?;;
install) install; return $?;; install) install; return $?;;
reinstall) clean && install; return $?;; reinstall) clean && install; return $?;;
test) test "${@:2}"; return $?;; test) test "${@:2}"; return $?;;
clean) clean; return $?;; clean) clean; return $?;;
release) env; release; return $?;;
*) return 1 ;; *) return 1 ;;
esac esac
} }
register-flow "jspg-flow" "jspg-usage" register-flow "jspg-usage" "jspg-flow"
dispatch "$@" dispatch "$@"

2
flows

Submodule flows updated: c33e7e1e05...e154758056