41 lines
999 B
YAML
41 lines
999 B
YAML
pipeline:
|
|
frontend:
|
|
image: node:16-alpine
|
|
commands:
|
|
- ( cd client && yarn install )
|
|
- ( cd client/ && yarn generate )
|
|
- mkdir -p client/.output/public/
|
|
|
|
backend:
|
|
image: golang:1.18-alpine
|
|
commands:
|
|
- apk add go-bindata
|
|
- apk add make
|
|
- make -C server setup
|
|
- make -C server build
|
|
- cp server/knowyt build/files/
|
|
|
|
build-publish:
|
|
image: mtvb/drone-kaniko
|
|
settings:
|
|
reproducible: true
|
|
username:
|
|
from_secret: docker.private.gnuher.de.username
|
|
password:
|
|
from_secret: docker.private.gnuher.de.password
|
|
repo: knowyt
|
|
registry: docker.private.gnuher.de
|
|
tags: latest
|
|
|
|
notify:
|
|
image: plugins/matrix
|
|
settings:
|
|
homeserver: https://matrix.bw-messenger.de/
|
|
roomid: wHCOKvEHLUmsNybNwh:matrix.bw-messenger.de
|
|
username:
|
|
from_secret: matrix.bw-messenger.de.username
|
|
password:
|
|
from_secret: matrix.bw-messenger.de.password
|
|
|
|
branches: prod
|