diff --git a/.drone.yml b/.drone.yml index 7047ac3..6634ab3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,11 +7,17 @@ steps: image: composer:2.1.14 commands: - cd backend && composer install + volumes: + - name: host_docker_sock + path: /tmp/cache - name: frontend image: node:16.13.1-alpine commands: - cd frontend && npm install && npm run build + volumes: + - name: host_docker_sock + path: /tmp/cache - name: build-docker-image image: plugins/docker @@ -25,6 +31,14 @@ steps: from_secret: registry_username password: from_secret: registry_password + volumes: + - name: host_docker_sock + path: /tmp/cache #when: # event: # - tag + +volumes: +- name: host_docker_sock + host: + path: /var/run/docker.sock diff --git a/docker/Dockerfile.drone b/docker/Dockerfile.drone index ce2092c..c7c5261 100644 --- a/docker/Dockerfile.drone +++ b/docker/Dockerfile.drone @@ -21,5 +21,5 @@ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" COPY zz-custom-php.ini "$PHP_INI_DIR/conf.d/" COPY zz-custom-phpfpm.conf /usr/local/etc/php-fpm.d/zz-docker.conf -COPY /drone/src/frontend/build /var/www/frontend -COPY /drone/src/backend /var/www/backend \ No newline at end of file +COPY ../frontend/build /var/www/frontend +COPY ../backend /var/www/backend