mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-15 02:44:24 -05:00
273a6ba853
* Use structured logging for all parts of the test * Fix malicious-join image build action --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
27 lines
603 B
Bash
27 lines
603 B
Bash
#!/usr/bin/env bash
|
|
|
|
lib=$(realpath @@BASE_LIB@@) || exit 1
|
|
stat "${lib}" >> /dev/null || exit 1
|
|
|
|
# shellcheck source=../../bazel/sh/lib.bash
|
|
if ! source "${lib}"; then
|
|
echo "Error: could not find import"
|
|
exit 1
|
|
fi
|
|
|
|
yq=$(realpath @@YQ_BIN@@)
|
|
template=$(realpath @@TEMPLATE@@)
|
|
REPO_TAG=$(realpath @@REPO_TAG@@)
|
|
export REPO_TAG
|
|
|
|
cd "${BUILD_WORKING_DIRECTORY}"
|
|
|
|
if [[ $# -eq 0 ]]; then
|
|
workdir="."
|
|
else
|
|
workdir="$1"
|
|
fi
|
|
|
|
echo "Stamping job deployment with $(cat "${REPO_TAG}")"
|
|
$yq eval ".spec.template.spec.containers[0].image = \"$(cat "${REPO_TAG}")\"" "$template" > "$workdir/stamped_job.yaml"
|