This commit is contained in:
31
.drone.yml
31
.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:
|
||||
|
||||
4
.gitmodules
vendored
4
.gitmodules
vendored
@@ -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
|
||||
|
||||
2
backend
2
backend
Submodule backend updated: 69db68607f...5cd84d4f7b
Submodule ping-helper updated: a288e52eeb...d8bd807939
Reference in New Issue
Block a user