6b35d863c9
ScoutFS-Build-style pipeline that pulls upstream versitygw release tags, applies the web-UI de-brand patch series, and builds GoReleaser releases (binaries + deb/rpm) for publishing to Gitea. Artifact names stay versitygw; only the embedded admin UI is rebranded to S3 Gateway. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
21 lines
614 B
Bash
21 lines
614 B
Bash
#!/bin/bash
|
|
# Local end-to-end build of one versitygw tag: clone -> patch -> build.
|
|
# Runs the same ci/ steps CI does, in a single shell so VGW_* env flows
|
|
# between them.
|
|
#
|
|
# VGW_TAG=v1.5.0 bash ci/run.sh
|
|
#
|
|
# Optional: point VGW_REPO_URL at a local clone for fast offline builds.
|
|
set -euo pipefail
|
|
|
|
: "${VGW_TAG:?set VGW_TAG, e.g. VGW_TAG=v1.5.0 bash ci/run.sh}"
|
|
export VGW_TAG
|
|
export VGW_SRC_DIR="${VGW_SRC_DIR:-src}"
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
bash "${DIR}/clone-source.sh"
|
|
bash "${DIR}/apply-patches.sh"
|
|
bash "${DIR}/build.sh"
|
|
|
|
echo ">>> done — artifacts in ${VGW_SRC_DIR}/dist/"
|