24 lines
788 B
YAML
24 lines
788 B
YAML
# Woodpecker CI — build image spark-cdc, push lên container registry.
|
|
# Registry: đặt theo hạ tầng hiện tại; đích cuối là Gitea registry (git.dbiz.com) khi sẵn sàng.
|
|
# Secret khai trong Woodpecker UI: registry_user, registry_token.
|
|
when:
|
|
- event: push
|
|
branch: main
|
|
path: "images/spark-cdc/**"
|
|
|
|
steps:
|
|
build-push:
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
registry: ${REGISTRY_HOST} # vd git.dbiz.com (Gitea) hoặc registry hiện tại
|
|
repo: ${REGISTRY_HOST}/dbiz/spark-cdc
|
|
dockerfile: images/spark-cdc/Dockerfile
|
|
context: images/spark-cdc
|
|
tags:
|
|
- latest
|
|
- ${CI_COMMIT_SHA:0:8}
|
|
username:
|
|
from_secret: registry_user
|
|
password:
|
|
from_secret: registry_token
|