Add BUILDKIT_NO_HTTP2 environment variable and improve domain check logging in certificate script
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -17,6 +17,8 @@ steps:
|
||||
- name: build multiarch proxy-scheduler
|
||||
image: docker.io/owncloudci/drone-docker-buildx:4
|
||||
privileged: true
|
||||
environment:
|
||||
BUILDKIT_NO_HTTP2: "1"
|
||||
settings:
|
||||
cache-from: [ "registry.dev.format.hu/proxy-scheduler" ]
|
||||
registry: registry.dev.format.hu
|
||||
|
@@ -187,7 +187,7 @@ if [ "$GENERATE_CERTIFICATE" == "true" ] && [ "$DOMAIN" != "localhost" ]; then
|
||||
fi
|
||||
DOMAIN_CHECK="curl -s -o /dev/null -w "%{http_code}" http://$DOMAIN"
|
||||
if [[ "$(eval $DOMAIN_CHECK)" == "200" || "$(eval $DOMAIN_CHECK)" == "301" ]]; then
|
||||
echo "DOMAIN CHECK: $DOMAIN_CHECK"
|
||||
echo "DOMAIN CHECK: $(eval $DOMAIN_CHECK)"
|
||||
letsencrypt_certificates
|
||||
echo "Started letsencrypt for domain: $DOMAIN first time"
|
||||
else
|
||||
@@ -197,7 +197,7 @@ if [ "$GENERATE_CERTIFICATE" == "true" ] && [ "$DOMAIN" != "localhost" ]; then
|
||||
sleep $TIMEOUT
|
||||
echo "Starting letsencrypt process again"
|
||||
if [[ "$(eval $DOMAIN_CHECK)" == "200" || "$(eval $DOMAIN_CHECK)" == "301" ]]; then
|
||||
echo "DOMAIN CHECK: $DOMAIN_CHECK"
|
||||
echo "DOMAIN CHECK: $(eval $DOMAIN_CHECK)"
|
||||
letsencrypt_certificates
|
||||
echo "Started letsencrypt for domain: $DOMAIN second time"
|
||||
break
|
||||
|
Reference in New Issue
Block a user