Compare commits
1 Commits
f60d5d03e9
...
0.0.14
| Author | SHA1 | Date | |
|---|---|---|---|
|
804e9bf742
|
@@ -6,6 +6,8 @@ steps:
|
||||
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"
|
||||
when:
|
||||
event: [tag]
|
||||
@@ -20,13 +22,15 @@ steps:
|
||||
from_secret: kube_config
|
||||
NAMESPACE: "homea2"
|
||||
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
|
||||
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
||||
- export KUBECONFIG=/tmp/kubeconfig
|
||||
- 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:
|
||||
event: [tag]
|
||||
|
||||
Reference in New Issue
Block a user