diff --git a/.drone.yml b/.drone.yml index 7659ec9..00fa5aa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,9 @@ kind: pipeline type: docker name: build-backend +clone: + depth: 0 + recursive: true # Запускать только если были изменения в папке backend/ trigger: event: [push, pull_request] @@ -10,6 +13,18 @@ trigger: - backend/** steps: + - name: force-init-submodules + image: alpine/git + commands: + # Очищаем все возможные предыдущие состояния субмодулей + - git submodule deinit --all --force + # Синхронизируем конфигурацию с .gitmodules + - git submodule sync --recursive + # Снова инициализируем с нуля + - git submodule update --init --recursive --force + - echo "Submodule status after forced update:" + - git submodule status + #- ls -laR - name: build-and-publish-backend image: plugins/docker settings: @@ -35,12 +50,28 @@ kind: pipeline type: docker name: build-ping-helper +clone: + depth: 0 + recursive: true + trigger: event: [push, pull_request] path: - ping-helper/** steps: + - name: force-init-submodules + image: alpine/git + commands: + # Очищаем все возможные предыдущие состояния субмодулей + - git submodule deinit --all --force + # Синхронизируем конфигурацию с .gitmodules + - git submodule sync --recursive + # Снова инициализируем с нуля + - git submodule update --init --recursive --force + - echo "Submodule status after forced update:" + - git submodule status + #- ls -laR - name: build-and-publish-ping-helper image: plugins/docker settings: diff --git a/.gitmodules b/.gitmodules index a878bc9..d30936b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "backend"] path = backend - url = git@gitea.mrixs.me:minecraft-platform/backend.git + url = https://gitea.mrixs.me/minecraft-platform/backend.git [submodule "ping-helper"] path = ping-helper - url = git@gitea.mrixs.me:minecraft-platform/ping-helper.git + url = https://gitea.mrixs.me/minecraft-platform/ping-helper.git diff --git a/backend b/backend index 69db686..5cd84d4 160000 --- a/backend +++ b/backend @@ -1 +1 @@ -Subproject commit 69db68607f5dc0d0e961cdd99003d59fe5bd81b0 +Subproject commit 5cd84d4f7b82ddbf2fa8f2da7098edb09b1ae12b diff --git a/ping-helper b/ping-helper index a288e52..d8bd807 160000 --- a/ping-helper +++ b/ping-helper @@ -1 +1 @@ -Subproject commit a288e52eeb35ddd111e8d877614b6946cbe9f357 +Subproject commit d8bd80793974e0dd24c500fb65fbb75dc77f0763