Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
006359687f
|
|||
|
f26d304890
|
|||
|
6feec48ac6
|
|||
|
ed6ed66a37
|
|||
|
09498dd0e5
|
|||
|
41f5e06e30
|
@@ -4,6 +4,10 @@ matrix:
|
|||||||
- api
|
- api
|
||||||
- abstraction
|
- abstraction
|
||||||
- rules
|
- rules
|
||||||
|
- meta_app_deployment
|
||||||
|
|
||||||
|
env:
|
||||||
|
NAMESPACE: "homea2"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
build:
|
build:
|
||||||
@@ -19,10 +23,44 @@ steps:
|
|||||||
from_secret: container_registry_password
|
from_secret: container_registry_password
|
||||||
dockerfile: apps/${APP}/Dockerfile
|
dockerfile: apps/${APP}/Dockerfile
|
||||||
when:
|
when:
|
||||||
|
matrix:
|
||||||
|
APP: [ "ui", "api", "abstraction", "rules" ]
|
||||||
event: [push, tag]
|
event: [push, tag]
|
||||||
ref:
|
ref:
|
||||||
exclude:
|
exclude:
|
||||||
- refs/tags/*-configchange
|
- 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:
|
||||||
|
matrix:
|
||||||
|
APP: meta_app_deployment
|
||||||
|
event: [tag]
|
||||||
|
ref:
|
||||||
|
exclude:
|
||||||
|
- refs/tags/*-configchange
|
||||||
|
|
||||||
|
apply_configuration:
|
||||||
|
image: quay.io/wollud1969/k8s-admin-helper:0.3.4
|
||||||
|
environment:
|
||||||
|
KUBE_CONFIG_CONTENT:
|
||||||
|
from_secret: kube_config
|
||||||
|
commands:
|
||||||
|
kubectl create configmap home-automation-config
|
||||||
|
--from-file=devices=config/devices.yaml
|
||||||
|
--from-file=groups=config/groups.yaml
|
||||||
|
--from-file=layout=config/layout.yaml
|
||||||
|
--from-file=rules=config/rules.yaml
|
||||||
|
--from-file=scenes=config/scenes.yaml
|
||||||
|
--namespace=$NAMESPACE
|
||||||
|
--dry-run=client -o yaml | kubectl apply -f -
|
||||||
|
when:
|
||||||
|
matrix:
|
||||||
|
APP: [ "meta_app_deployment" ]
|
||||||
|
event: [tag]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user