Some checks failed
Build and Test / terraria (push) Failing after 4m42s
Build and Test / minecraft-wiiu (push) Failing after 4m44s
Build and Test / splatoon-testfire (push) Failing after 4m45s
Build and Test / mario-tennis (push) Successful in 4m48s
Build and Test / sonic-transformed (push) Failing after 4m54s
Build and Test / friends (push) Failing after 4m56s
Build and Test / splatoon (push) Failing after 4m56s
Build and Test / fast-racing-neo (push) Failing after 4m58s
Build and Test / wii-u-chat (push) Failing after 4m58s
Build and Test / super-mario-maker (push) Failing after 5m2s
Build and Test / puyopuyo (push) Failing after 5m8s
Build and Test / wii-sports-club (push) Failing after 5m9s
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
32 lines
No EOL
908 B
Shell
Executable file
32 lines
No EOL
908 B
Shell
Executable file
#!/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 |