6 Commits

Author SHA1 Message Date
f60d5d03e9 namespace and config 12
Some checks failed
ci/woodpecker/push/predeploy Pipeline was successful
ci/woodpecker/push/build/4 Pipeline was successful
ci/woodpecker/tag/build/1 Pipeline failed
ci/woodpecker/tag/build/2 Pipeline failed
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/tag/build/3 Pipeline failed
ci/woodpecker/push/build/3 Pipeline was successful
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/tag/build/4 Pipeline failed
ci/woodpecker/tag/predeploy Pipeline failed
2025-11-21 12:06:56 +01:00
eff88e1d2f namespace and config 11 2025-11-21 12:06:28 +01:00
d027163087 namespace and config 10
Some checks failed
ci/woodpecker/push/woodpecker/5 Pipeline failed
ci/woodpecker/push/woodpecker/1 Pipeline was successful
ci/woodpecker/push/woodpecker/4 Pipeline was successful
ci/woodpecker/push/woodpecker/2 Pipeline was successful
ci/woodpecker/push/woodpecker/3 Pipeline was successful
2025-11-21 12:01:20 +01:00
4051ca22a4 namespace and config 9
Some checks failed
ci/woodpecker/push/woodpecker/5 Pipeline failed
ci/woodpecker/push/woodpecker/3 Pipeline failed
ci/woodpecker/push/woodpecker/1 Pipeline failed
ci/woodpecker/push/woodpecker/2 Pipeline failed
ci/woodpecker/push/woodpecker/4 Pipeline failed
2025-11-21 12:00:35 +01:00
2608e935b8 namespace and config 8
Some checks failed
ci/woodpecker/push/woodpecker/5 Pipeline failed
ci/woodpecker/push/woodpecker/4 Pipeline was successful
ci/woodpecker/push/woodpecker/1 Pipeline was successful
ci/woodpecker/push/woodpecker/3 Pipeline was successful
ci/woodpecker/push/woodpecker/2 Pipeline was successful
ci/woodpecker/tag/woodpecker/1 Pipeline failed
ci/woodpecker/tag/woodpecker/5 Pipeline failed
ci/woodpecker/tag/woodpecker/2 Pipeline failed
ci/woodpecker/tag/woodpecker/4 Pipeline failed
ci/woodpecker/tag/woodpecker/3 Pipeline failed
2025-11-21 11:55:50 +01:00
51f3b4f227 namespace and config 7
Some checks failed
ci/woodpecker/push/woodpecker/4 Pipeline is pending
ci/woodpecker/push/woodpecker/5 Pipeline is pending
ci/woodpecker/tag/woodpecker/4 Pipeline is pending
ci/woodpecker/tag/woodpecker/5 Pipeline is pending
ci/woodpecker/tag/woodpecker/1 Pipeline is pending
ci/woodpecker/tag/woodpecker/2 Pipeline is pending
ci/woodpecker/tag/woodpecker/3 Pipeline is pending
ci/woodpecker/push/woodpecker/1 Pipeline failed
ci/woodpecker/push/woodpecker/2 Pipeline failed
ci/woodpecker/push/woodpecker/3 Pipeline failed
2025-11-21 11:46:24 +01:00
2 changed files with 27 additions and 35 deletions

25
.woodpecker/build.yml Normal file
View File

@@ -0,0 +1,25 @@
matrix:
APP:
- ui
- api
- abstraction
- rules
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

View File

@@ -1,45 +1,13 @@
matrix:
APP:
- ui
- api
- abstraction
- rules
- meta_app_deployment
env:
NAMESPACE: "homea2"
steps: 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:
matrix:
APP: [ "ui", "api", "abstraction", "rules" ]
event: [push, tag]
ref:
exclude:
- refs/tags/*-configchange
create_namespace: create_namespace:
image: quay.io/wollud1969/k8s-admin-helper:0.3.4 image: quay.io/wollud1969/k8s-admin-helper:0.3.4
environment: environment:
KUBE_CONFIG_CONTENT: KUBE_CONFIG_CONTENT:
from_secret: kube_config from_secret: kube_config
NAMESPACE: "homea2"
commands: commands:
- kubectl create namespace ${NAMESPACE} || echo "Namespace ${NAMESPACE} already exists" - kubectl create namespace ${NAMESPACE} || echo "Namespace ${NAMESPACE} already exists"
when: when:
matrix:
APP: meta_app_deployment
event: [tag] event: [tag]
ref: ref:
exclude: exclude:
@@ -50,6 +18,7 @@ steps:
environment: environment:
KUBE_CONFIG_CONTENT: KUBE_CONFIG_CONTENT:
from_secret: kube_config from_secret: kube_config
NAMESPACE: "homea2"
commands: commands:
kubectl create configmap home-automation-config kubectl create configmap home-automation-config
--from-file=devices=config/devices.yaml --from-file=devices=config/devices.yaml
@@ -60,7 +29,5 @@ steps:
--namespace=$NAMESPACE --namespace=$NAMESPACE
--dry-run=client -o yaml | kubectl apply -f - --dry-run=client -o yaml | kubectl apply -f -
when: when:
matrix:
APP: [ "meta_app_deployment" ]
event: [tag] event: [tag]