From 7cb01603fc4a7914630d0ed45d37e210f2c717b4 Mon Sep 17 00:00:00 2001 From: Bartek Wrona Date: Fri, 5 Dec 2025 17:43:33 +0100 Subject: [PATCH] Fixed dev. deployment --- .gitlab-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8e0ab34..24b4a7a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -93,6 +93,19 @@ deploy_dev_environment: url: https://auth.dev.openhive.network on_stop: stop_dev_environment + script: + # Avoid performing source ${!DEPLOYMENT_ENV_FILE} to prevent errors on exec. of complex var. values + - | + # credits of solution for gitlab bug: https://gitlab.com/gitlab-org/gitlab/-/issues/294292#note_1070210709 + export DEPLOYMENT_ENV_FILE=${!DEPLOYMENT_ENV_FILE} + ./scripts/run_instance.sh \ + --image="$IMAGE_NAME" \ + --name="$CONTAINER_NAME" \ + --port=$PORT \ + --env-file="${DEPLOYMENT_ENV_FILE}" \ + --detach + + rules: - if: '$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $CI_COMMIT_REF_PROTECTED == "true"' when: on_success -- GitLab