Browse Source

test

master
komarov 4 years ago
parent
commit
b6ba939583
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      .drone.yml

+ 5
- 4
.drone.yml View File

@@ -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
- ssh-add $HOME/.ssh/id_rsa
- 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
image: plugins/docker
settings:
storage_path: /drone/docker
use_cache: true
dockerfile: docker/php/Dockerfile
dockerfile: arbitry/docker/php/Dockerfile
context: arbitry
registry: registry:5000
repo: registry:5000/arbitry_php_base
tags: ${DRONE_BRANCH//\\//-}
@@ -62,7 +63,7 @@ steps:
settings:
storage_path: /drone/docker
use_cache: true
dockerfile: docker/php-fpm/Dockerfile
dockerfile: arbitry/docker/php-fpm/Dockerfile
registry: registry:5000
repo: registry:5000/arbitry_php_fpm
tags: ${DRONE_BRANCH//\\//-}


Loading…
Cancel
Save