Browse Source

Trying to fix submodule fetch (patch will be removed in the future when omegamma goes public).

main
Ad5001 2 months ago
parent
commit
e7e6ec184c
Signed by: Ad5001 GPG Key ID: EF45F9C6AFE20160
  1. 2
      .gitmodules
  2. 15
      ci/drone.yml

2
.gitmodules

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

15
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://<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
image: xdevbase/hugo-builder:latest
commands:

Loading…
Cancel
Save