|
|
@@ -2,24 +2,24 @@ kind: pipeline |
|
|
|
type: docker |
|
|
|
name: build |
|
|
|
|
|
|
|
#clone: |
|
|
|
# disable: true |
|
|
|
clone: |
|
|
|
disable: true |
|
|
|
|
|
|
|
steps: |
|
|
|
# - name: clone |
|
|
|
# image: docker:git |
|
|
|
# environment: |
|
|
|
# KEY: |
|
|
|
# from_secret: DEPLOY_KEY |
|
|
|
# PUBLIC: |
|
|
|
# from_secret: DEPLOY_KEY_PUBLIC |
|
|
|
# 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 -t rsa gitea.torrion-vault.xyz >> $HOME/.ssh/known_hosts |
|
|
|
# - ssh |
|
|
|
# - git clone ssh://git@gitea.torrion-vault.xyz:2222/Torrion/arbitry.git |
|
|
|
# - git checkout $DRONE_COMMIT |
|
|
|
- name: clone |
|
|
|
image: docker:git |
|
|
|
environment: |
|
|
|
KEY: |
|
|
|
from_secret: DEPLOY_KEY |
|
|
|
PUBLIC: |
|
|
|
from_secret: DEPLOY_KEY_PUBLIC |
|
|
|
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 -t rsa gitea.torrion-vault.xyz >> $HOME/.ssh/known_hosts |
|
|
|
- ssh |
|
|
|
- git clone https://gitea.torrion-vault.xyz/Torrion/arbitry.git |
|
|
|
- git checkout $DRONE_COMMIT |
|
|
|
- name: build_php_base |
|
|
|
image: plugins/docker |
|
|
|
settings: |
|
|
|