volumes
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
This commit is contained in:
parent
4cda02d30d
commit
c298daf0eb
14
.drone.yml
14
.drone.yml
|
@ -7,11 +7,17 @@ steps:
|
||||||
image: composer:2.1.14
|
image: composer:2.1.14
|
||||||
commands:
|
commands:
|
||||||
- cd backend && composer install
|
- cd backend && composer install
|
||||||
|
volumes:
|
||||||
|
- name: host_docker_sock
|
||||||
|
path: /tmp/cache
|
||||||
|
|
||||||
- name: frontend
|
- name: frontend
|
||||||
image: node:16.13.1-alpine
|
image: node:16.13.1-alpine
|
||||||
commands:
|
commands:
|
||||||
- cd frontend && npm install && npm run build
|
- cd frontend && npm install && npm run build
|
||||||
|
volumes:
|
||||||
|
- name: host_docker_sock
|
||||||
|
path: /tmp/cache
|
||||||
|
|
||||||
- name: build-docker-image
|
- name: build-docker-image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
@ -25,6 +31,14 @@ steps:
|
||||||
from_secret: registry_username
|
from_secret: registry_username
|
||||||
password:
|
password:
|
||||||
from_secret: registry_password
|
from_secret: registry_password
|
||||||
|
volumes:
|
||||||
|
- name: host_docker_sock
|
||||||
|
path: /tmp/cache
|
||||||
#when:
|
#when:
|
||||||
# event:
|
# event:
|
||||||
# - tag
|
# - tag
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: host_docker_sock
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
|
|
@ -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-php.ini "$PHP_INI_DIR/conf.d/"
|
||||||
COPY zz-custom-phpfpm.conf /usr/local/etc/php-fpm.d/zz-docker.conf
|
COPY zz-custom-phpfpm.conf /usr/local/etc/php-fpm.d/zz-docker.conf
|
||||||
|
|
||||||
COPY /drone/src/frontend/build /var/www/frontend
|
COPY ../frontend/build /var/www/frontend
|
||||||
COPY /drone/src/backend /var/www/backend
|
COPY ../backend /var/www/backend
|
||||||
|
|
Loading…
Reference in New Issue