From 8447f82dcf46d3c20c5bfb3b98df9212810b8968 Mon Sep 17 00:00:00 2001 From: Marek Lesko Date: Fri, 1 Aug 2025 09:58:47 +0200 Subject: [PATCH] fix: update apiEndpoint in docker-build to include https protocol #5 --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 54ea51d..b2d9ec5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,7 +31,7 @@ docker-build: before_script: - docker info script: - - 'sed -i "s|\"apiEndpoint\": \"[^\"]*\"|\"apiEndpoint\": \"$PUBLIC_WEB_URL\"|" Web/public/config.json' + - 'sed -i "s|\"apiEndpoint\": \"[^\"]*\"|\"apiEndpoint\": https\:\/\/\"$PUBLIC_WEB_URL\"|" Web/public/config.json' - 'sed -i "s|\"AllowedHosts\": \"[^\"]*\"|\"AllowedHosts\": \"$PUBLIC_WEB_URL\"|" Api/appsettings.json' - docker build -t $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE:${CI_PIPELINE_IID} -f Dockerfile . - echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY