Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
6b4c247413
|
23
.woodpecker/config.yml
Normal file
23
.woodpecker/config.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
when:
|
||||||
|
event: [tag]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
apply_configuration:
|
||||||
|
image: quay.io/wollud1969/k8s-admin-helper:0.3.4
|
||||||
|
environment:
|
||||||
|
KUBE_CONFIG_CONTENT:
|
||||||
|
from_secret: kube_config
|
||||||
|
NAMESPACE: "homea2"
|
||||||
|
commands:
|
||||||
|
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
||||||
|
- export KUBECONFIG=/tmp/kubeconfig
|
||||||
|
- kubectl create configmap home-automation-config
|
||||||
|
--from-file=devices.yaml=config/devices.yaml
|
||||||
|
--from-file=groups.yaml=config/groups.yaml
|
||||||
|
--from-file=layout.yaml=config/layout.yaml
|
||||||
|
--from-file=rules.yaml=config/rules.yaml
|
||||||
|
--from-file=scenes.yaml=config/scenes.yaml
|
||||||
|
--namespace=$NAMESPACE
|
||||||
|
--dry-run=client -o yaml | kubectl apply -f -
|
||||||
|
- kubectl apply -f deployment/configmap.yaml -n $NAMESPACE
|
||||||
|
|
||||||
18
.woodpecker/namespace.yml
Normal file
18
.woodpecker/namespace.yml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
when:
|
||||||
|
event: [tag]
|
||||||
|
ref:
|
||||||
|
exclude:
|
||||||
|
- refs/tags/*-configchange
|
||||||
|
|
||||||
|
steps:
|
||||||
|
create_namespace:
|
||||||
|
image: quay.io/wollud1969/k8s-admin-helper:0.3.4
|
||||||
|
environment:
|
||||||
|
KUBE_CONFIG_CONTENT:
|
||||||
|
from_secret: kube_config
|
||||||
|
NAMESPACE: "homea2"
|
||||||
|
commands:
|
||||||
|
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
||||||
|
- export KUBECONFIG=/tmp/kubeconfig
|
||||||
|
- kubectl create namespace $NAMESPACE || echo "Namespace $NAMESPACE already exists"
|
||||||
|
|
||||||
Reference in New Issue
Block a user