2022-01-09 11:08:42 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2022-01-10 07:00:40 +00:00
|
|
|
- name: backend
|
2022-01-10 10:53:25 +00:00
|
|
|
image: composer:2.1.14
|
2022-01-09 11:16:43 +00:00
|
|
|
commands:
|
2022-01-10 07:00:40 +00:00
|
|
|
- cd backend && composer install
|
2022-01-10 11:03:30 +00:00
|
|
|
volumes:
|
|
|
|
- name: host_docker_sock
|
|
|
|
path: /tmp/cache
|
2022-01-10 07:00:40 +00:00
|
|
|
|
|
|
|
- name: frontend
|
2022-01-10 10:51:12 +00:00
|
|
|
image: node:16.13.1-alpine
|
2022-01-10 07:00:40 +00:00
|
|
|
commands:
|
|
|
|
- cd frontend && npm install && npm run build
|
2022-01-10 11:03:30 +00:00
|
|
|
volumes:
|
|
|
|
- name: host_docker_sock
|
|
|
|
path: /tmp/cache
|
2022-01-10 07:00:40 +00:00
|
|
|
|
2022-01-10 07:31:06 +00:00
|
|
|
- name: build-docker-image
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2022-01-10 07:38:49 +00:00
|
|
|
context: docker/
|
2022-01-10 10:51:12 +00:00
|
|
|
dockerfile: docker/Dockerfile.drone
|
2022-01-10 07:31:06 +00:00
|
|
|
auto_tag: true
|
2022-01-10 10:18:37 +00:00
|
|
|
repo: registry.xrg.io/xrg.es
|
2022-01-10 07:31:06 +00:00
|
|
|
registry: https://registry.xrg.io
|
|
|
|
username:
|
|
|
|
from_secret: registry_username
|
|
|
|
password:
|
|
|
|
from_secret: registry_password
|
2022-01-10 11:03:30 +00:00
|
|
|
volumes:
|
|
|
|
- name: host_docker_sock
|
|
|
|
path: /tmp/cache
|
2022-01-10 07:31:06 +00:00
|
|
|
#when:
|
|
|
|
# event:
|
|
|
|
# - tag
|
2022-01-10 11:03:30 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: host_docker_sock
|
|
|
|
host:
|
|
|
|
path: /var/run/docker.sock
|