diff --git a/.drone.yml b/.drone.yml index 6df090f..365c318 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,6 +10,10 @@ trigger: - master steps: + - name: submodules + image: alpine/git + commands: + - git submodule update --init --recursive - name: 构建 Docker 镜像 image: plugins/docker:latest privileged: true @@ -35,11 +39,6 @@ steps: commands: - docker run --rm gitea.service.jazzwhom.top/mttu-developers/konabot:nightly-${DRONE_COMMIT_SHA} python scripts/test_plugin_load.py - - name: submodules - image: alpine/git - commands: - - git submodule update --init --recursive - volumes: - name: docker-socket host: @@ -55,6 +54,10 @@ trigger: - tag steps: + - name: submodules + image: alpine/git + commands: + - git submodule update --init --recursive - name: 构建并推送 Release Docker 镜像 image: plugins/docker:latest privileged: true @@ -72,11 +75,6 @@ steps: - name: docker-socket path: /var/run/docker.sock - - name: submodules - image: alpine/git - commands: - - git submodule update --init --recursive - volumes: - name: docker-socket host: