Browse Source

test 32

master
komarov 4 years ago
parent
commit
03eb9ecf83
1 changed files with 16 additions and 15 deletions
  1. +16
    -15
      .drone.yml

+ 16
- 15
.drone.yml View File

@@ -2,23 +2,24 @@ kind: pipeline
type: docker type: docker
name: build name: build


clone:
disable: true
#clone:
# disable: true


steps: 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
- 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 ssh://git@gitea.torrion-vault.xyz:2222/Torrion/arbitry.git
# - git checkout $DRONE_COMMIT
- name: build_php_base - name: build_php_base
image: plugins/docker image: plugins/docker
settings: settings:


Loading…
Cancel
Save