earthly conf file, return correct exit code

This commit is contained in:
Anton-4 2021-05-25 18:55:06 +02:00
parent 0b3b02b498
commit 76cc393520
2 changed files with 6 additions and 3 deletions

2
ci/earthly-conf.yml Normal file
View File

@ -0,0 +1,2 @@
global:
cache_size_mb: 25000

View File

@ -3,7 +3,8 @@
LOG_FILE="earthly_log.txt"
touch $LOG_FILE
script -efq $LOG_FILE -c "earthly --buildkit-cache-size-mb 25000 +test-all"
script -efq $LOG_FILE -c "earthly --config ci/earthly-conf.yml +test-all"
EXIT_CODE=$?
if grep -q "failed to mount" "$LOG_FILE"; then
echo ""
@ -13,7 +14,7 @@ if grep -q "failed to mount" "$LOG_FILE"; then
echo "------<<<<<<!!!!!!>>>>>>------"
echo ""
echo ""
earthly --no-cache --buildkit-cache-size-mb 25000 +test-all
earthly --config ci/earthly-conf.yml --no-cache +test-all
else
return 1
exit $EXIT_CODE
fi