rust-nex/.forgejo/workflows/build.sh
red binder b5ee9b98c3
All checks were successful
Build and Test / wii-u-chat (push) Successful in 5m55s
Build and Test / super-mario-maker (push) Successful in 5m58s
Build and Test / minecraft-wiiu (push) Successful in 6m36s
Build and Test / splatoon-testfire (push) Successful in 6m47s
Build and Test / fast-racing-neo (push) Successful in 7m40s
Build and Test / terraria (push) Successful in 17m8s
Build and Test / mario-tennis (push) Successful in 17m23s
Build and Test / splatoon (push) Successful in 18m23s
Build and Test / sonic-transformed (push) Successful in 19m34s
Build and Test / friends (push) Successful in 19m52s
Build and Test / wii-sports-club (push) Successful in 19m51s
Build and Test / puyopuyo (push) Successful in 19m53s
missed a spot in the CI
2026-08-09 17:35:58 +02:00

31 lines
No EOL
855 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/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