dchat/.woodpecker/oci-image-build.yml

54 lines
1.3 KiB
YAML

matrix:
TARGET:
- bot
- web
- migration
- ui
- monolith
PLATFORM:
- linux/amd64
depends_on:
- oci-image-cache-build
steps:
build-only:
image: woodpeckerci/plugin-docker-buildx:4.1.0
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
platforms: ${PLATFORM}
dry-run: true
build_args:
- SETUP_IMAGE=rg.fr-par.scw.cloud/hamburghammer/dchat/setup-image:${CI_PIPELINE_NUMBER}
when:
- event: [push, manual]
branch:
exclude: [main]
build:
image: woodpeckerci/plugin-docker-buildx:4.1.0
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
platforms: ${PLATFORM}
auto_tag: true
build_args:
- SETUP_IMAGE=rg.fr-par.scw.cloud/hamburghammer/dchat/setup-image:${CI_PIPELINE_NUMBER}
when:
- branch: main
event: [push, tag, manual]