debian-image-builder-frontend/ci.sh
Sanne Raymaekers 7d9f4b9c62 ci.sh: export sentry variables before calling build
Otherwise fec doesn't pick them up.
2024-11-15 10:50:03 +01:00

29 lines
620 B
Bash

#!/bin/bash
# Workaround needed for Konflux pipeline to pass
find -name "cockpit" -type d
find -name "cockpit" -type d | xargs rm -rf -
setNpmOrYarn
install
build
if [ "$IS_PR" == true ]; then
verify
else
export BETA=false
build
source build_app_info.sh
mv ${DIST_FOLDER} stable
export BETA=true
# export sentry specific variables
export SENTRY_AUTH_TOKEN SENTRY_DSN SENTRY_ORG SENTRY_PROJECT
build
source build_app_info.sh
mv ${DIST_FOLDER} preview
mkdir -p ${DIST_FOLDER}
mv stable ${DIST_FOLDER}/stable
mv preview ${DIST_FOLDER}/preview
fi
# End workaround