2023-07-18 20:02:37 +02:00
|
|
|
matrix:
|
|
|
|
TARGET:
|
|
|
|
- bot
|
|
|
|
- web
|
|
|
|
- migration
|
2023-11-23 21:21:30 +01:00
|
|
|
- ui
|
2024-02-17 16:25:20 +01:00
|
|
|
- monolith
|
2023-11-23 21:29:21 +01:00
|
|
|
PLATFORM:
|
2024-07-11 16:17:22 +02:00
|
|
|
- linux/amd64
|
2023-07-18 20:02:37 +02:00
|
|
|
|
2023-11-23 22:29:12 +01:00
|
|
|
depends_on:
|
2024-02-18 14:06:28 +01:00
|
|
|
- oci-image-cache-build
|
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-07-11 16:31:20 +02:00
|
|
|
image: woodpeckerci/plugin-docker-buildx:4.1.0
|
2023-11-23 21:12:08 +01:00
|
|
|
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
|
2024-02-18 14:06:28 +01:00
|
|
|
build_args:
|
2024-03-08 16:16:51 +01:00
|
|
|
- SETUP_IMAGE=rg.fr-par.scw.cloud/hamburghammer/dchat/setup-image:${CI_PIPELINE_NUMBER}
|
2023-11-23 21:12:08 +01:00
|
|
|
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-07-11 16:31:20 +02:00
|
|
|
image: woodpeckerci/plugin-docker-buildx:4.1.0
|
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
|
2024-02-18 14:06:28 +01:00
|
|
|
build_args:
|
2024-03-08 16:16:51 +01:00
|
|
|
- SETUP_IMAGE=rg.fr-par.scw.cloud/hamburghammer/dchat/setup-image:${CI_PIPELINE_NUMBER}
|
2023-11-23 21:12:08 +01:00
|
|
|
when:
|
|
|
|
- branch: main
|
2024-07-11 15:58:11 +02:00
|
|
|
event: [push, tag, manual]
|