Trying to fix submodule fetch (patch will be removed in the future when omegamma goes public).
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Ad5001 2021-08-09 00:14:19 +02:00
parent afb5da1ae9
commit e7e6ec184c
Signed by: Ad5001
GPG Key ID: EF45F9C6AFE20160
2 changed files with 16 additions and 1 deletions

2
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "themes/omegamma"] [submodule "omegamma"]
path = themes/omegamma path = themes/omegamma
url = https://git.ad5001.eu/Ad5001/omegamma url = https://git.ad5001.eu/Ad5001/omegamma

View File

@ -7,6 +7,21 @@ clone:
recursive: true recursive: true
steps: 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://<USERNAME>@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 - name: Build dev.ad5001.eu
image: xdevbase/hugo-builder:latest image: xdevbase/hugo-builder:latest
commands: commands: