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
|
|
|
|
image: composer
|
2022-01-09 11:16:43 +00:00
|
|
|
commands:
|
2022-01-10 07:00:40 +00:00
|
|
|
- cd backend && composer install
|
|
|
|
|
|
|
|
- name: frontend
|
|
|
|
image: node
|
|
|
|
commands:
|
|
|
|
- cd frontend && npm install && npm run build
|
|
|
|
|
2022-01-10 07:31:06 +00:00
|
|
|
- name: build-docker-image
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
repo: https://registry.xrg.io/salvarez/xrg.es
|
|
|
|
registry: https://registry.xrg.io
|
|
|
|
username:
|
|
|
|
from_secret: registry_username
|
|
|
|
password:
|
|
|
|
from_secret: registry_password
|
|
|
|
#when:
|
|
|
|
# event:
|
|
|
|
# - tag
|
|
|
|
|
2022-01-10 07:00:40 +00:00
|
|
|
- name: discord notification
|
|
|
|
image: appleboy/drone-discord
|
|
|
|
settings:
|
|
|
|
webhook_id:
|
|
|
|
from_secret: discord_webhook_id
|
|
|
|
webhook_token:
|
|
|
|
from_secret: discord_webhook_token
|
|
|
|
username: Drone
|