From 1df09bd6d0bbca67b82c7cf65cb3ba1523b67856 Mon Sep 17 00:00:00 2001 From: komarov Date: Sun, 5 Apr 2020 22:44:49 +0300 Subject: [PATCH] test 53 --- .drone.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index a97a0c9..c7b6fc8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,12 +13,23 @@ steps: from_secret: DEPLOY_KEY PUBLIC: from_secret: DEPLOY_KEY_PUBLIC + GIT_IP: + from_secret: GIT_IP + GIT_HOST: + from_secret: GIT_HOST + GIT_SSH_PORT: + from_secret: GIT_SSH_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 104.248.32.133 >> $HOME/.ssh/known_hosts && ssh-keyscan -p 2222 -H gitea.torrion-vault.xyz >> $HOME/.ssh/known_hosts - - git clone ssh://git@gitea.torrion-vault.xyz:2222/Torrion/arbitry.git ./ + - ssh-add $HOME/.ssh/id_rsa + - ssh-keyscan -p $GIT_SSH_PORT -H $GIT_IP >> $HOME/.ssh/known_hosts + - ssh-keyscan -p $GIT_SSH_PORT -H $GIT_HOST >> $HOME/.ssh/known_hosts + - git clone $GIT_REPOSITORY ./ - git checkout $DRONE_COMMIT + - name: build_php_base image: plugins/docker settings: @@ -47,7 +58,7 @@ steps: insecure: true build_args: PHP_VERSION: 7.4.4 - BUILD_IMAGE: arbitry_php_base + BUILD_IMAGE: 'arbitry_php_base' depends_on: - build_php_base trigger: