mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
15 lines
346 B
Bash
15 lines
346 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
shopt -s inherit_errexit
|
|
|
|
export PATH=/run/wrappers/bin:/run/current-system/sw/bin:/bin:/usr/bin:/usr/local/bin
|
|
VERSION_ARG=""
|
|
args=("$@")
|
|
|
|
if [[ -n ${VERSION_FILE+x} ]]; then
|
|
VERSION_ARG="--environment=IMAGE_VERSION=$(cat "${VERSION_FILE}")"
|
|
args+=("$VERSION_ARG")
|
|
fi
|
|
|
|
exec @@MKOSI@@ "${args[@]}" build
|