|
|
|
@ -33,14 +33,8 @@ steps: |
|
|
|
commands: |
|
|
|
- echo 192.168.0.2 git.1000my.com >> /etc/hosts |
|
|
|
- ping git.1000my.com -c 1 |
|
|
|
- mkdir -p $HOME/.ssh/ |
|
|
|
- ssh-keyscan git.1000my.com > ~/.ssh/known_hosts |
|
|
|
- git clone --depth=1 $DRONE_GIT_SSH_URL . |
|
|
|
- git clone --depth=1 $DRONE_GIT_HTTP_URL . |
|
|
|
- git submodule update --init --recursive |
|
|
|
- git -c advice.detachedHead=false checkout $DRONE_COMMIT |
|
|
|
- git status |
|
|
|
- pwd |
|
|
|
- ls -la |
|
|
|
|
|
|
|
- name: 生成Release版本 |
|
|
|
pull: if-not-exists |
|
|
|
|