| @@ -36,15 +36,16 @@ steps: | |||||
| - 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-add $HOME/.ssh/id_rsa | ||||
| - ssh-keyscan -p $GIT_PORT -H $GIT_HOST > $HOME/.ssh/known_hosts | - ssh-keyscan -p $GIT_PORT -H $GIT_HOST > $HOME/.ssh/known_hosts | ||||
| - git clone $GIT_REPOSITORY ./ | |||||
| - git checkout $DRONE_BRANCH | |||||
| - git clone $GIT_REPOSITORY arbitry | |||||
| - cd arbitry && git checkout $DRONE_BRANCH && rm -rf .git | |||||
| - name: build_php_base | - name: build_php_base | ||||
| image: plugins/docker | image: plugins/docker | ||||
| settings: | settings: | ||||
| storage_path: /drone/docker | storage_path: /drone/docker | ||||
| use_cache: true | use_cache: true | ||||
| dockerfile: docker/php/Dockerfile | |||||
| dockerfile: arbitry/docker/php/Dockerfile | |||||
| context: arbitry | |||||
| registry: registry:5000 | registry: registry:5000 | ||||
| repo: registry:5000/arbitry_php_base | repo: registry:5000/arbitry_php_base | ||||
| tags: ${DRONE_BRANCH//\\//-} | tags: ${DRONE_BRANCH//\\//-} | ||||
| @@ -62,7 +63,7 @@ steps: | |||||
| settings: | settings: | ||||
| storage_path: /drone/docker | storage_path: /drone/docker | ||||
| use_cache: true | use_cache: true | ||||
| dockerfile: docker/php-fpm/Dockerfile | |||||
| dockerfile: arbitry/docker/php-fpm/Dockerfile | |||||
| registry: registry:5000 | registry: registry:5000 | ||||
| repo: registry:5000/arbitry_php_fpm | repo: registry:5000/arbitry_php_fpm | ||||
| tags: ${DRONE_BRANCH//\\//-} | tags: ${DRONE_BRANCH//\\//-} | ||||