knowyt/.woodpecker.yml

44 lines
1.1 KiB
YAML
Raw Normal View History

when:
branch: prod
steps:
2022-11-05 20:54:26 +00:00
frontend:
2023-06-18 09:16:49 +00:00
image: node:18-alpine
2022-11-05 20:18:08 +00:00
commands:
2023-06-18 09:29:12 +00:00
- yarn global add pnpm
- ( cd client && pnpm run setup )
2023-06-18 09:16:49 +00:00
- ( cd client/ && pnpm run generate )
2022-11-05 21:03:26 +00:00
- mkdir -p client/.output/public/
2022-11-06 08:58:48 +00:00
backend:
2023-06-18 09:16:49 +00:00
image: golang:1.20-alpine
2022-11-06 08:58:48 +00:00
commands:
- apk add go-bindata
2022-11-06 08:59:56 +00:00
- apk add make
- make -C server setup
- make -C server build
2023-06-18 09:39:37 +00:00
- mkdir -p build/files/data
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: thegeeklab/drone-matrix
2022-11-06 09:03:19 +00:00
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