dockerhub: use post checkout hook for git submodule init

Signed-off-by: deadprogram <ron@hybridgroup.com>
Этот коммит содержится в:
deadprogram 2020-08-02 17:29:52 +02:00
родитель 0a7e74045a
коммит b5ab114514
2 изменённых файлов: 9 добавлений и 0 удалений

5
hooks/README.md Обычный файл
Просмотреть файл

@ -0,0 +1,5 @@
# Hooks for Docker Hub
Files in this directory are custom commands to be run during the different Docker Hub build phases.
See https://docs.docker.com/docker-hub/builds/advanced/#custom-build-phase-hooks

4
hooks/post_checkout Исполняемый файл
Просмотреть файл

@ -0,0 +1,4 @@
#!/bin/bash
# Docker hub does a recursive clone, then checks the branch out,
# so when a PR adds a submodule (or updates it), it fails.
git submodule update --init