forked from spacebar/rust-nex
remove node holders and general repo cleanup
the node holders were just causing issues, we have no need for them currently, so we can just set the secure proxy URL through FORWARD_DESTINATION. less complexity for the cluster and self-hosters too
This commit is contained in:
parent
62e867af2f
commit
aaf9bc4b65
31 changed files with 51 additions and 574 deletions
32
.forgejo/workflows/build.sh
Executable file
32
.forgejo/workflows/build.sh
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
export EDITION=$1
|
||||
source /etc/environment 2>/dev/null || true
|
||||
: "${RNEX_CONTAINER_PLATFORM:=docker}"
|
||||
|
||||
export SHORT_SHA=${GITHUB_SHA::6}
|
||||
export CI_COMMIT_SHORT_SHA=${CI_COMMIT_SHORT_SHA:-$SHORT_SHA}
|
||||
|
||||
echo "building $EDITION"
|
||||
export TARGET_DIR="target/release"
|
||||
|
||||
./test-edition.sh
|
||||
./build-edition.sh
|
||||
|
||||
mkdir -p dist/
|
||||
cp $TARGET_DIR/rnex-server-backend-node-holder dist/
|
||||
cp $TARGET_DIR/proxy_insecure dist/
|
||||
cp $TARGET_DIR/proxy_secure dist/
|
||||
cp $TARGET_DIR/rnex-server-backend-auth dist/
|
||||
cp $TARGET_DIR/rnex-server-backend-secure dist/
|
||||
|
||||
TARGETS=("proxy-secure" "proxy-insecure" "backend-auth" "backend-secure")
|
||||
|
||||
for TARGET in "${TARGETS[@]}"; do
|
||||
$RNEX_CONTAINER_PLATFORM build \
|
||||
--target="$TARGET" \
|
||||
-t "$CI_REGISTRY_IMAGE/$EDITION/$TARGET:$CI_COMMIT_SHORT_SHA" .
|
||||
|
||||
$RNEX_CONTAINER_PLATFORM push "$CI_REGISTRY_IMAGE/$EDITION/$TARGET:$CI_COMMIT_SHORT_SHA"
|
||||
done
|
||||
|
|
@ -62,4 +62,4 @@ jobs:
|
|||
run: |
|
||||
echo "SHORT_SHA=${SHORT_SHA::6}" >> $GITHUB_ENV
|
||||
export CI_COMMIT_SHORT_SHA="${SHORT_SHA::6}"
|
||||
./.ci-scripts/make-edition.sh ${{ matrix.edition }}
|
||||
./.forgejo/workflows/build.sh ${{ matrix.edition }}
|
||||
Loading…
Reference in a new issue