Browse Source

fix: unset CI

pull/1/head v1.0.0-pre-dev.20
jiannibang 3 years ago
parent
commit
6f4a91e26c
  1. 33
      .drone.yml

33
.drone.yml

@ -65,23 +65,23 @@ steps:
PASSWD: PASSWD:
from_secret: gitea_password from_secret: gitea_password
commands: commands:
- git config --global credential.helper store
- echo "https://$USER:$PASSWD@git.1000my.com" >> ~/.git-credentials
- cat ~/.git-credentials
- 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`
- git config --global credential.helper store
- echo "https://$USER:$PASSWD@git.1000my.com" >> ~/.git-credentials
- cat ~/.git-credentials
- 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
# 获取当前分支的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: 代码构建 - name: 代码构建
pull: if-not-exists pull: if-not-exists
# image: registry.k8s.1000my.com/library/node:16.15.0-slim # image: registry.k8s.1000my.com/library/node:16.15.0-slim
@ -100,6 +100,7 @@ steps:
- npm install - npm install
- cd ../../ - cd ../../
- npm install - npm install
- unset CI
- npm run build - npm run build
when: when:
branch: branch:

Loading…
Cancel
Save