Some checks failed
Build and Test / build-editions (wii-u-chat) (push) Failing after 1m10s
Build and Test / build-editions (sonic-transformed) (push) Failing after 1m11s
Build and Test / build-editions (DATABASE_SMM, super-mario-maker) (push) Failing after 1m13s
Build and Test / build-editions (splatoon) (push) Failing after 1m13s
Build and Test / build-editions (DATABASE_SMM, wii-sports-club) (push) Failing after 1m13s
Build and Test / build-editions (terraria) (push) Failing after 1m14s
Build and Test / build-editions (mario-tennis) (push) Failing after 1m14s
Build and Test / build-editions (splatoon-testfire) (push) Failing after 1m16s
Build and Test / build-editions (fast-racing-neo) (push) Failing after 1m16s
Build and Test / build-editions (DATABASE_SMM, puyopuyo) (push) Failing after 1m16s
Build and Test / build-editions (minecraft-wiiu) (push) Failing after 1m16s
Build and Test / build-editions (DATABASE_FRIENDS, friends) (push) Failing after 1m16s
it just causes us grief for something that can be easily avoided by just using minimal alpine images. we can revisit it later if needed.
32 lines
No EOL
948 B
Shell
Executable file
32 lines
No EOL
948 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/x86_64-unknown-linux-musl/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 |