| @@ -13,12 +13,23 @@ steps: | |||||
| from_secret: DEPLOY_KEY | from_secret: DEPLOY_KEY | ||||
| PUBLIC: | PUBLIC: | ||||
| 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: | commands: | ||||
| - eval $(ssh-agent) | - 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 | - 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 | - git checkout $DRONE_COMMIT | ||||
| - name: build_php_base | - name: build_php_base | ||||
| image: plugins/docker | image: plugins/docker | ||||
| settings: | settings: | ||||
| @@ -47,7 +58,7 @@ steps: | |||||
| insecure: true | insecure: true | ||||
| build_args: | build_args: | ||||
| PHP_VERSION: 7.4.4 | PHP_VERSION: 7.4.4 | ||||
| BUILD_IMAGE: arbitry_php_base | |||||
| BUILD_IMAGE: 'arbitry_php_base' | |||||
| depends_on: | depends_on: | ||||
| - build_php_base | - build_php_base | ||||
| trigger: | trigger: | ||||