|
|
@ -31,10 +31,11 @@ steps: |
|
|
commands: |
|
|
commands: |
|
|
- echo 192.168.0.2 git.1000my.com >> /etc/hosts |
|
|
- echo 192.168.0.2 git.1000my.com >> /etc/hosts |
|
|
- ping git.1000my.com -c 1 |
|
|
- ping git.1000my.com -c 1 |
|
|
- git clone --depth=1 $DRONE_GIT_HTTP_URL . |
|
|
|
|
|
|
|
|
- git init |
|
|
|
|
|
- git fetch '--depth=1' origin $CI_COMMIT_REF |
|
|
|
|
|
- git checkout $CI_COMMIT_SHA -b $DRONE_REPO_BRANCH |
|
|
|
|
|
# - git clone --depth=1 $DRONE_GIT_HTTP_URL . |
|
|
- git submodule update --init --recursive |
|
|
- git submodule update --init --recursive |
|
|
- git checkout -b $DRONE_REPO_BRANCH || true |
|
|
|
|
|
- git tag --merged $DRONE_REPO_BRANCH |
|
|
|
|
|
|
|
|
|
|
|
- name: 生成Release版本 |
|
|
- name: 生成Release版本 |
|
|
pull: if-not-exists |
|
|
pull: if-not-exists |
|
|
|