From 6e1d6d677d5f62bc90d013f9891474aa867ff476 Mon Sep 17 00:00:00 2001 From: Kamen Mladenov Date: Tue, 17 Jan 2023 15:19:24 +0000 Subject: [pages] Properly pull submodules --- .gitlab-ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9de2e98..4e112f0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,12 +3,20 @@ image: busybox +# Thanks https://dzone.com/articles/using-git-submodules-with-gitlab-cicd +variables: + GIT_SUBMODULE_STRATEGY: recursive + pages: stage: deploy + before_script: + - git config --global http.sslVerify "false" + - git submodule init + - git submodule update --recursive --remote script: - echo "The site will be deployed to $CI_PAGES_URL" artifacts: paths: - public rules: - - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH \ No newline at end of file + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH -- cgit v1.3.1-26-gb76a