This commit is contained in:
Maël Gramain 2025-01-06 21:32:33 +01:00
commit 6d3def79f6
5 changed files with 68 additions and 19 deletions

28
.ci/gen_output.sh Executable file
View file

@ -0,0 +1,28 @@
echo "\`\`\`" > output.txt
process_output() {
if [ $? -eq 0 ]; then
head -n 5 output_tmp.txt >> output.txt
echo "... [See pipeline output for full details]" >> output.txt
tail -n 5 output_tmp.txt >> output.txt
else
cat output_tmp.txt >> output.txt
fi
}
echo "-- START Port attribution watcher --" | tee -a output.txt
python3 .ci/port_attribution_watcher.py | tee output_tmp.txt
process_output
echo "-- END Port attribution watcher --" | tee -a output.txt
echo "" >> output.txt
echo "-- START Traefik label watcher --" | tee -a output.txt
python3 .ci/traefik_label_watcher.py | tee output_tmp.txt
process_output
echo "-- END Traefik label watcher --" | tee -a output.txt
echo "\`\`\`" >> output.txt # Close the code block