mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
Refactor/project structure (#3085)
* refactor project structure * environment-based default registry * fix tests * update build container * use docker platform for iso build emulation * simplify compat * Fix docker platform spec in run-compat.sh * handle riscv compat * fix bug with dep error exists attr * undo removal of sorting * use qemu for iso stage --------- Co-authored-by: Mariusz Kogen <k0gen@pm.me> Co-authored-by: Matt Hill <mattnine@protonmail.com>
This commit is contained in:
16
web/update-config.sh
Executable file
16
web/update-config.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd "$(dirname ${BASH_SOURCE[0]})"
|
||||
|
||||
set -e
|
||||
|
||||
if [[ "$(cat ../build/env/ENVIRONMENT.txt)" =~ (^|-)beta($|-) ]]; then
|
||||
BETA='beta-'
|
||||
fi
|
||||
|
||||
CONFIG=$(if [ -f config.json ]; then cat config.json; else cat config-sample.json; fi)
|
||||
echo "$CONFIG" \
|
||||
| jq '.useMocks = false' \
|
||||
| jq ".gitHash = \"$(cat ../build/env/GIT_HASH.txt)\"" \
|
||||
| jq ".defaultRegistry = \"https://${BETA}registry.start9.com\"" \
|
||||
> config.json
|
||||
Reference in New Issue
Block a user