2023-04-09 12:40:27 +02:00
|
|
|
---
|
2023-04-09 11:59:12 +02:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2023-04-09 12:02:46 +02:00
|
|
|
name: Build backend
|
2023-04-09 11:59:12 +02:00
|
|
|
|
|
|
|
steps:
|
2023-04-09 12:22:44 +02:00
|
|
|
- name: Build backend
|
2023-04-09 11:59:12 +02:00
|
|
|
image: nixos/nix
|
2023-04-09 16:21:57 +02:00
|
|
|
volumes:
|
2023-04-09 16:35:49 +02:00
|
|
|
- name: drone-shared
|
2023-04-09 16:21:57 +02:00
|
|
|
path: /drone-shared
|
2023-04-09 11:59:12 +02:00
|
|
|
commands:
|
2023-04-09 12:02:46 +02:00
|
|
|
- cd backend
|
2023-04-09 11:59:12 +02:00
|
|
|
- nix-channel --update
|
|
|
|
- nix-build
|
2023-04-09 16:21:57 +02:00
|
|
|
- cp result /drone-shared/jitsi-rooms-docker-image
|
2023-04-09 11:59:12 +02:00
|
|
|
trigger:
|
2023-04-09 12:42:55 +02:00
|
|
|
event:
|
|
|
|
include:
|
|
|
|
- tag
|
2023-06-20 17:54:50 +02:00
|
|
|
- push
|
2023-04-09 16:21:57 +02:00
|
|
|
|
2023-04-09 16:23:03 +02:00
|
|
|
volumes:
|
2023-04-09 16:21:57 +02:00
|
|
|
- name: drone-shared
|
|
|
|
host:
|
|
|
|
path: /tmp/drone-shared
|
2023-04-09 12:22:44 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Build frontend
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Build frontend
|
2023-04-09 12:23:47 +02:00
|
|
|
image: node:alpine
|
2023-04-09 16:30:35 +02:00
|
|
|
volumes:
|
2023-04-09 16:35:49 +02:00
|
|
|
- name: drone-shared
|
2023-04-09 16:30:35 +02:00
|
|
|
path: /drone-shared
|
2023-04-09 12:22:44 +02:00
|
|
|
commands:
|
2023-04-09 16:33:41 +02:00
|
|
|
- ls -lah /drone-shared
|
2023-04-09 12:22:44 +02:00
|
|
|
- cd frontend
|
|
|
|
- yarn install
|
|
|
|
- yarn build
|
2023-04-09 16:28:34 +02:00
|
|
|
- cp -r dist /drone-shared/
|
2023-04-09 16:49:02 +02:00
|
|
|
- name: Trigger frontend deploy
|
|
|
|
image: curlimages/curl
|
2023-04-09 17:01:18 +02:00
|
|
|
environment:
|
|
|
|
NEW_USER:
|
|
|
|
from_secret: NEW_USER
|
|
|
|
NEW_PASSWORD:
|
|
|
|
from_secret: NEW_PASSWORD
|
2023-04-09 16:49:02 +02:00
|
|
|
commands:
|
2023-04-09 16:53:41 +02:00
|
|
|
- echo $NEW_USER user
|
2023-04-09 17:02:53 +02:00
|
|
|
- curl -f --user $NEW_USER:$NEW_PASSWORD https://logs.filefighter.de/deploy-jitsi-rooms-fe.log
|
2023-04-09 12:22:44 +02:00
|
|
|
trigger:
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- tag
|
2023-04-09 11:59:12 +02:00
|
|
|
- push
|
|
|
|
|
2023-04-09 16:28:34 +02:00
|
|
|
volumes:
|
|
|
|
- name: drone-shared
|
|
|
|
host:
|
|
|
|
path: /tmp/drone-shared
|