I’m using Drone 0.7, and I want to be able to use the submodule_override
option to stop the Host key verification failed. fatal: Could not read from remote repository.
error you get from submodules. The API around customizing clone seems to have shifted a lot, so I’m not certain how to go about this.
I first tried the clone-outside-pipeline syntax, but this failed with
ERROR: yaml: unmarshal errors: line 1: cannot unmarshal !!str
plugins…into yaml.Container
:
clone:
image: plugins/git
recursive: true
submodule_override:
my_submodule: https://github.com/my/submodule
pipeline:
build:
image: test_image
commands:
- dx build_asset . -f
And I tried the clone-inside-pipeline syntax, which ran fine, but the submodule_override
seemed to have no effect, and I got the Could not read from remote repository
error:
pipeline:
clone:
image: plugins/git
recursive: true
submodule_override:
my_submodule: https://github.com/my/submodule
build:
image: test_image
commands:
- dx build_asset . -f
What should I be doing?