knowyt/.woodpecker.yml

41 lines
999 B
YAML
Raw Normal View History

2022-11-04 20:36:24 +00:00
pipeline:
2022-11-05 20:54:26 +00:00
frontend:
image: node:16-alpine
2022-11-05 20:18:08 +00:00
commands:
2022-11-06 08:50:13 +00:00
- ( cd client && yarn install )
- ( cd client/ && yarn generate )
2022-11-05 21:03:26 +00:00
- mkdir -p client/.output/public/
2022-11-06 08:58:48 +00:00
backend:
image: golang:1.18-alpine
commands:
- apk add go-bindata
2022-11-06 08:59:56 +00:00
- apk add make
- make -C server setup
- make -C server build
2022-11-06 09:02:31 +00:00
- cp server/knowyt build/files/
2022-11-06 09:01:08 +00:00
2022-11-06 09:03:19 +00:00
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
2022-11-06 09:01:08 +00:00
2022-11-06 09:03:19 +00:00
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
2022-11-06 09:13:59 +00:00
2022-11-06 09:16:39 +00:00
branches: prod