Browse Source

test

master
komarov 4 years ago
parent
commit
ccdb977901
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      .drone.yml

+ 8
- 3
.drone.yml View File

@@ -13,13 +13,18 @@ steps:
from_secret: DEPLOY_KEY
PUBLIC:
from_secret: DEPLOY_KEY_PUBLIC
GIT_HOST:
from_secret: GIT_HOST
GIT_PORT:
from_secret: GIT_PORT
GIT_REPOSITORY:
from_secret: GIT_REPOSITORY
commands:
- 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 2222 -H gitea.local > $HOME/.ssh/known_hosts
- ssh -T git@gitea.local -p 2222
- git clone ssh://git@gitea.local:2222/Torrion/arbitry.git ./
- ssh-keyscan -p $GIT_PORT -H $GIT_HOST > $HOME/.ssh/known_hosts
- git clone $GIT_REPOSITORY ./
- git checkout $DRONE_COMMIT

- name: build_php_base


Loading…
Cancel
Save