|
|
@@ -35,7 +35,7 @@ steps: |
|
|
|
- eval $(ssh-agent) |
|
|
|
- mkdir $HOME/.ssh && echo "$KEY" > $HOME/.ssh/id_rsa && chmod 600 $HOME/.ssh/id_rsa && echo "$PUBLIC" > $HOME/.ssh/id_rsa.pub |
|
|
|
- ssh-add $HOME/.ssh/id_rsa |
|
|
|
- ssh-keyscan -p $GIT_PORT -H $GIT_HOST > $HOME/.ssh/known_hosts |
|
|
|
- ssh-keyscan -p 2222 -H gitea.local > $HOME/.ssh/known_hosts |
|
|
|
- git clone $GIT_REPOSITORY ./ |
|
|
|
- git checkout $DRONE_BRANCH |
|
|
|
|
|
|
|