jitsi-roomsv2/.drone.yml

64 lines
1.2 KiB
YAML

---
kind: pipeline
type: docker
name: Build backend
steps:
- name: Build backend
image: nixos/nix
volumes:
- name: drone-shared
path: /drone-shared
commands:
- cd backend
- nix-channel --update
- nix-build
- cp result /drone-shared/jitsi-rooms-docker-image
trigger:
event:
include:
- tag
volumes:
- name: drone-shared
host:
path: /tmp/drone-shared
---
kind: pipeline
type: docker
name: Build frontend
steps:
- name: Build frontend
image: node:alpine
volumes:
- name: drone-shared
path: /drone-shared
commands:
- ls -lah /drone-shared
- cd frontend
- yarn install
- yarn build
- cp -r dist /drone-shared/
- name: Trigger frontend deploy
image: curlimages/curl
environment:
NEW_USER:
from_secret: NEW_USER
NEW_PASSWORD:
from_secret: NEW_PASSWORD
commands:
- echo $NEW_USER user
- curl --user $NEW_USER:$NEW_PASSWORD https://logs.filefighter.de/deploy-jitsi-rooms-fe.log
trigger:
trigger:
event:
- tag
- push
volumes:
- name: drone-shared
host:
path: /tmp/drone-shared