This commit is contained in:
2025-11-27 16:40:09 +01:00
parent 84e401778e
commit 84fe6eea96
4 changed files with 100 additions and 1 deletions

49
.woodpecker.yml Normal file
View File

@@ -0,0 +1,49 @@
matrix:
APP:
- ui
- api
- abstraction
- rules
env:
NAMESPACE: "homea2"
steps:
build:
image: plugins/kaniko
settings:
repo: ${FORGE_NAME}/${CI_REPO}/${APP}
registry:
from_secret: container_registry
auto_tag: true
username:
from_secret: container_registry_username
password:
from_secret: container_registry_password
dockerfile: apps/${APP}/Dockerfile
when:
event: [push, tag]
ref:
exclude:
- refs/tags/*-configchange
create_namespace:
image: quay.io/wollud1969/k8s-admin-helper:0.3.4
environment:
KUBE_CONFIG_CONTENT:
from_secret: kube_config
commands:
- kubectl create namespace ${NAMESPACE} || echo "Namespace ${NAMESPACE} already exists"
when:
- event: [tag]
configuration:
image: quay.io/wollud1969/k8s-admin-helper:0.3.4
environment:
KUBE_CONFIG_CONTENT:
from_secret: kube_config
commands:
when:
- event: [tag]