fix
Build docker image and push to registry.bitdeals.org / main-build-job (push) Successful in 29s

This commit is contained in:
2026-06-23 12:12:38 +03:00
parent 12f9464fd4
commit 75a59eab66
+6 -6
View File
@@ -2,12 +2,6 @@
set -e
# Wait for haproxy container
while ! nc -z haproxy 9999 2>/dev/null; do
echo "Waiting for haproxy:9999..."
sleep 7
done
if [ ! -f /etc/certificates/site.pem ]; then
# Generate self-signed certificate
openssl genrsa -out site.key 2048
@@ -16,6 +10,12 @@ if [ ! -f /etc/certificates/site.pem ]; then
cat site.key site.crt >> /etc/certificates/site.pem
fi
# Wait for haproxy container
while ! nc -z haproxy 9999 2>/dev/null; do
echo "Waiting for haproxy:9999..."
sleep 7
done
# check e-mail for letsencrypt notifications
if [ -n "$CERTBOT_EMAIL" ]; then
CERTBOT_OPTS="--email $CERTBOT_EMAIL"