rust-nex/.ci-scripts/make-edition.sh
red binder f04e85d496
All checks were successful
Build and Test / build-editions (fast-racing-neo) (push) Successful in 7m10s
Build and Test / build-editions (mario-tennis) (push) Successful in 7m13s
Build and Test / build-editions (wii-u-chat) (push) Successful in 7m32s
Build and Test / build-editions (splatoon) (push) Successful in 7m39s
Build and Test / build-editions (sonic-transformed) (push) Successful in 7m41s
Build and Test / build-editions (terraria) (push) Successful in 7m42s
Build and Test / build-editions (splatoon-testfire) (push) Successful in 7m44s
Build and Test / build-editions (minecraft-wiiu) (push) Successful in 7m45s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Successful in 7m47s
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Successful in 7m46s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Successful in 7m47s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Successful in 7m46s
drop musl support
it was a hard 3 minutes of thinking but i realized we run containers anyways so??? it was kinda useless
2026-08-08 06:31:07 +02:00

32 lines
No EOL
922 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=("node-holder" "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