From e7e6ec184c49807f11b8e770d96cce25181ef7c9 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Mon, 9 Aug 2021 00:14:19 +0200 Subject: [PATCH] Trying to fix submodule fetch (patch will be removed in the future when omegamma goes public). --- .gitmodules | 2 +- ci/drone.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index dd08668..0538265 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "themes/omegamma"] +[submodule "omegamma"] path = themes/omegamma url = https://git.ad5001.eu/Ad5001/omegamma diff --git a/ci/drone.yml b/ci/drone.yml index 5fdb1c6..ca1920f 100644 --- a/ci/drone.yml +++ b/ci/drone.yml @@ -7,6 +7,21 @@ clone: recursive: true steps: + - name: Initilizing submodules + image: alpine/git + environment: + GIT_ASKPASS: "/bin/git-askpass-from-env" + commands: + # Installing little script to get git password from environment. + - wget https://download.ad5001.eu/other/git-askpass-from-env.sh + - mv git-askpass-from-env.sh /bin/git-askpass-from-env + - chmod +x /bin/git-askpass-from-env + # Changing submodule URL to https://@git.ad5001.eu/Ad5001/omegamma.git + - git submodule init + - git config submodule.sub/omegamma.url https://$DRONE_GIT_USERNAME@git.ad5001.eu/Ad5001/omegamma.git + # Fetching submodules + - git submodule update --init --recursive + - name: Build dev.ad5001.eu image: xdevbase/hugo-builder:latest commands: