Compare commits
6 commits
1bb00fcda9
...
4ce49cb68f
Author | SHA1 | Date | |
---|---|---|---|
4ce49cb68f | |||
f0e7038a05 | |||
97d2c80f85 | |||
09bebecd9f | |||
3a03657b1c | |||
e3ba53fa70 |
5 changed files with 54 additions and 14 deletions
26
.woodpecker/java.yml
Normal file
26
.woodpecker/java.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
matrix:
|
||||
MODULE:
|
||||
- db
|
||||
- bot
|
||||
- web
|
||||
- migration
|
||||
|
||||
variables:
|
||||
- &image 'docker.io/maven:3.9-eclipse-temurin-21'
|
||||
|
||||
steps:
|
||||
compile:
|
||||
image: *image
|
||||
group: compile
|
||||
commands:
|
||||
- mvn --batch-mode --no-transfer-progress -pl ${MODULE} -am compile
|
||||
test:
|
||||
image: *image
|
||||
group: test
|
||||
commands:
|
||||
- mvn --batch-mode --no-transfer-progress -pl ${MODULE} -am test
|
||||
build:
|
||||
image: *image
|
||||
group: build
|
||||
commands:
|
||||
- mvn --batch-mode --no-transfer-progress -Dmaven.test.skip -pl ${MODULE} -am install
|
7
.woodpecker/nodejs.yml
Normal file
7
.woodpecker/nodejs.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
steps:
|
||||
build:
|
||||
image: docker.io/node:18-alpine
|
||||
directory: ui
|
||||
commands:
|
||||
- npm ci
|
||||
- npm run build
|
|
@ -12,7 +12,8 @@ labels:
|
|||
platform: linux/amd64
|
||||
|
||||
depends_on:
|
||||
- test
|
||||
- java
|
||||
- nodejs
|
||||
|
||||
steps:
|
||||
build-only:
|
|
@ -1,13 +0,0 @@
|
|||
matrix:
|
||||
MODULE:
|
||||
- db
|
||||
- bot
|
||||
- web
|
||||
- migration
|
||||
|
||||
steps:
|
||||
test:
|
||||
image: docker.io/maven:3.9-eclipse-temurin-21
|
||||
group: test
|
||||
commands:
|
||||
- mvn --batch-mode --no-transfer-progress -pl ${MODULE} -am test
|
|
@ -10,6 +10,8 @@ services:
|
|||
context: .
|
||||
target: bot
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- db
|
||||
user: 1000:1000
|
||||
depends_on:
|
||||
- db
|
||||
|
@ -32,6 +34,9 @@ services:
|
|||
- migration
|
||||
ports:
|
||||
- 8080:8080
|
||||
networks:
|
||||
- db
|
||||
- web
|
||||
|
||||
migration:
|
||||
image: git.hhhammer.de/hamburghammer/dchat/migration:latest
|
||||
|
@ -44,6 +49,8 @@ services:
|
|||
user: 1000:1000
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
- db
|
||||
|
||||
ui:
|
||||
image: git.hhhammer.de/hamburghammer/dchat/ui:latest
|
||||
|
@ -54,6 +61,8 @@ services:
|
|||
user: 1000:1000
|
||||
ports:
|
||||
- 8081:8080
|
||||
networks:
|
||||
- ui
|
||||
|
||||
caddy:
|
||||
image: git.hhhammer.de/hamburghammer/dchat/caddy:latest
|
||||
|
@ -67,6 +76,9 @@ services:
|
|||
- web
|
||||
ports:
|
||||
- 8081:8080
|
||||
networks:
|
||||
- ui
|
||||
- web
|
||||
volumes:
|
||||
- caddy_config:/config
|
||||
|
||||
|
@ -77,6 +89,8 @@ services:
|
|||
restart: unless-stopped
|
||||
ports:
|
||||
- 127.0.0.1:5432:5432
|
||||
networks:
|
||||
- db
|
||||
volumes:
|
||||
- ./data/postgres:/var/lib/postgresql/data:rw
|
||||
healthcheck:
|
||||
|
@ -88,3 +102,8 @@ services:
|
|||
|
||||
volumes:
|
||||
caddy_config:
|
||||
|
||||
networks:
|
||||
db:
|
||||
ui:
|
||||
web:
|
||||
|
|
Loading…
Reference in a new issue