volumes
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Sergio Álvarez 2022-01-10 12:03:30 +01:00
parent 4cda02d30d
commit c298daf0eb
No known key found for this signature in database
GPG Key ID: 622780889DFDBDA5
2 changed files with 16 additions and 2 deletions

View File

@ -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

View File

@ -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
COPY ../frontend/build /var/www/frontend
COPY ../backend /var/www/backend