2023-07-18 20:02:37 +02:00
|
|
|
matrix:
|
|
|
|
TARGET:
|
|
|
|
- bot
|
|
|
|
- web
|
|
|
|
- migration
|
2023-11-23 21:21:30 +01:00
|
|
|
- ui
|
2023-11-23 21:29:21 +01:00
|
|
|
PLATFORM:
|
2023-12-09 14:34:25 +01:00
|
|
|
# - linux/amd64
|
2023-11-23 21:29:21 +01:00
|
|
|
- linux/arm64
|
2023-07-18 20:02:37 +02:00
|
|
|
|
2023-12-07 01:30:33 +01:00
|
|
|
labels:
|
|
|
|
platform: linux/amd64
|
|
|
|
|
2023-11-23 22:29:12 +01:00
|
|
|
depends_on:
|
2023-12-07 23:49:44 +01:00
|
|
|
- java
|
2023-12-08 00:08:40 +01:00
|
|
|
- nodejs
|
2023-07-27 00:38:17 +02:00
|
|
|
|
2023-11-23 21:18:51 +01:00
|
|
|
steps:
|
2023-11-23 21:12:08 +01:00
|
|
|
build-only:
|
2024-01-07 18:47:37 +01:00
|
|
|
image: woodpeckerci/plugin-docker-buildx:2.3.0
|
2023-11-23 21:12:08 +01:00
|
|
|
group: build
|
|
|
|
settings:
|
|
|
|
registry: rg.fr-par.scw.cloud/hamburghammer
|
|
|
|
username: nologin
|
|
|
|
password:
|
|
|
|
from_secret: docker_token
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
target: ${TARGET}
|
|
|
|
repo: rg.fr-par.scw.cloud/hamburghammer/dchat/${TARGET}
|
|
|
|
tags: latest
|
|
|
|
pull_image: false
|
2023-11-23 21:29:21 +01:00
|
|
|
platforms: ${PLATFORM}
|
2023-11-23 21:12:08 +01:00
|
|
|
dry-run: true
|
|
|
|
when:
|
2023-12-09 20:53:59 +01:00
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
2023-11-23 21:12:08 +01:00
|
|
|
exclude: [main]
|
2023-12-09 20:53:59 +01:00
|
|
|
|
2023-07-27 01:03:17 +02:00
|
|
|
build:
|
2024-01-07 18:47:37 +01:00
|
|
|
image: woodpeckerci/plugin-docker-buildx:2.3.0
|
2023-07-18 20:22:49 +02:00
|
|
|
group: build
|
2023-07-18 20:02:37 +02:00
|
|
|
settings:
|
2023-10-31 14:52:08 +01:00
|
|
|
registry: rg.fr-par.scw.cloud/hamburghammer
|
|
|
|
username: nologin
|
2023-07-18 20:02:37 +02:00
|
|
|
password:
|
|
|
|
from_secret: docker_token
|
2023-07-27 00:50:50 +02:00
|
|
|
dockerfile: Dockerfile
|
2023-07-18 20:02:37 +02:00
|
|
|
target: ${TARGET}
|
2023-10-17 19:20:26 +02:00
|
|
|
repo: rg.fr-par.scw.cloud/hamburghammer/dchat/${TARGET}
|
2023-07-18 20:02:37 +02:00
|
|
|
tags: latest
|
2023-07-18 20:24:53 +02:00
|
|
|
pull_image: false
|
2023-11-23 21:29:21 +01:00
|
|
|
platforms: ${PLATFORM}
|
2023-12-09 20:04:00 +01:00
|
|
|
auto_tag: true
|
2023-11-23 21:12:08 +01:00
|
|
|
when:
|
|
|
|
- branch: main
|