ci: relax failure threshold

This commit is contained in:
Digikwal 2025-06-26 18:18:25 +02:00 committed by digikwal
parent 77f393fa79
commit 19c1431fb3
No known key found for this signature in database
6 changed files with 23 additions and 6 deletions

View file

@ -58,4 +58,4 @@ jobs:
- name: Run hadolint
run: |
find . -type f -name "Dockerfile*" -exec hadolint {} +
find . -type f -name "Dockerfile*" -exec hadolint --failure-threshold error {} +

View file

@ -15,6 +15,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Wait for Check workflow to succeed
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

View file

@ -1,3 +1,4 @@
---
extends: default
rules:

View file

@ -1,3 +1,4 @@
---
x-customizable-image: &customizable_image
# By default the image used only contains the `frappe` and `erpnext` apps.
# See https://github.com/frappe/frappe_docker/blob/main/docs/custom-apps.md

View file

@ -1,3 +1,4 @@
---
services:
configurator:
environment:

21
pwd.yml
View file

@ -1,3 +1,4 @@
---
version: "3"
services:
@ -65,19 +66,29 @@ services:
wait-for-it -t 120 redis-cache:6379;
wait-for-it -t 120 redis-queue:6379;
export start=`date +%s`;
until [[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".db_host // empty"` ]] && \
[[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".redis_cache // empty"` ]] && \
[[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".redis_queue // empty"` ]];
until [[ -n `grep -hs ^ sites/common_site_config.json | \
jq -r ".db_host // empty"` ]] && \
[[ -n `grep -hs ^ sites/common_site_config.json | \
jq -r ".redis_cache // empty"` ]] && \
[[ -n `grep -hs ^ sites/common_site_config.json | \
jq -r ".redis_queue // empty"` ]];
do
echo "Waiting for sites/common_site_config.json to be created";
sleep 5;
if (( `date +%s`-start > 120 )); then
echo "could not find sites/common_site_config.json with required keys";
echo "could not find sites/common_site_config.json with required keys" \
"and the process will exit.";
exit 1
fi
done;
echo "sites/common_site_config.json found";
bench new-site --mariadb-user-host-login-scope='%' --admin-password=admin --db-root-username=root --db-root-password=admin --install-app erpnext --set-default frontend;
bench new-site \
--mariadb-user-host-login-scope='%' \
--admin-password=admin \
--db-root-username=root \
--db-root-password=admin \
--install-app erpnext \
--set-default frontend;
db:
image: mariadb:10.6