Browse Source

fix: ci

pull/1/head v1.0.0-pre-dev.9
千目管理员 3 years ago
parent
commit
da55d6d823
  1. 17
      .drone.yml

17
.drone.yml

@ -60,9 +60,20 @@ steps:
- name: 获取tag数据
image: alpine/git:v2.36.2
commands:
- git fetch --tags
- git describe --tags `git rev-list --tags --max-count=1` > .tags
- cat .tags
- git fetch --tags
- git submodule init
- git submodule update --recursive --remote
# - git submodule add -b master https://git.1000my.com/project_runteng/server_iot-common.git
# - git mv server_iot-common iot-common
# - git submodule sync
- git describe --tags `git rev-list --tags --max-count=1`
# 获取当前分支的tag
- git describe --abbrev=0 --tags > .tags
- cat .tags
# - git fetch --tags
# - git describe --tags `git rev-list --tags --max-count=1` > .tags
# - cat .tags
- name: 代码构建
pull: if-not-exists
# image: registry.k8s.1000my.com/library/node:16.15.0-slim

Loading…
Cancel
Save