| @@ -25,14 +25,15 @@ steps: | |||||
| - 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 clone $GIT_REPOSITORY ./ | ||||
| - git checkout $DRONE_COMMIT | |||||
| - git checkout $DRONE_BRANCH | |||||
| - name: build_php_base | - name: build_php_base | ||||
| image: plugins/docker | image: plugins/docker | ||||
| settings: | settings: | ||||
| dockerfile: docker/php/Dockerfile | dockerfile: docker/php/Dockerfile | ||||
| registry: registry:5000 | registry: registry:5000 | ||||
| repo: registry:5000/arbitry_php_base:${DRONE_BRANCH//\\//-} | |||||
| repo: registry:5000/arbitry_php_base | |||||
| tags: ${DRONE_BRANCH//\\//-} | |||||
| insecure: true | insecure: true | ||||
| build_args: | build_args: | ||||
| - PHP_VERSION=7.4.4 | - PHP_VERSION=7.4.4 | ||||
| @@ -47,7 +48,8 @@ steps: | |||||
| settings: | settings: | ||||
| dockerfile: docker/php-fpm/Dockerfile | dockerfile: docker/php-fpm/Dockerfile | ||||
| registry: registry:5000 | registry: registry:5000 | ||||
| repo: registry:5000/arbitry_php_fpm:${DRONE_BRANCH//\\//-} | |||||
| repo: registry:5000/arbitry_php_fpm | |||||
| tags: ${DRONE_BRANCH//\\//-} | |||||
| insecure: true | insecure: true | ||||
| build_args: | build_args: | ||||
| - BUILD_IMAGE=registry:5000/arbitry_php_base:${DRONE_BRANCH//\\//-} | - BUILD_IMAGE=registry:5000/arbitry_php_base:${DRONE_BRANCH//\\//-} | ||||