Konflux: Add ci.sh with workaround for Konflux pipeline
The Konflux pipeline clones the repo twice, making a nested clone under ./source/source which causes webpack to break when the Cockpit webpack configuration is present. `source ci.sh` is run at the beginning of the Konflux pipeline and as a workaround for now we simply remove everything related to Cockpit - this is fine as none of it is needed for the service to run.
This commit is contained in:
parent
830e22fcdc
commit
c833e5f01b
1 changed files with 27 additions and 0 deletions
27
ci.sh
Normal file
27
ci.sh
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
#!/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
|
||||||
|
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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue