All checks were successful
ci/woodpecker/push/build/4 Pipeline was successful
ci/woodpecker/push/build/3 Pipeline was successful
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/predeploy Pipeline was successful
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/push/deploy/1 Pipeline was successful
ci/woodpecker/push/deploy/3 Pipeline was successful
ci/woodpecker/push/deploy/4 Pipeline was successful
ci/woodpecker/push/deploy/2 Pipeline was successful
ci/woodpecker/tag/predeploy Pipeline was successful
ci/woodpecker/tag/build/4 Pipeline was successful
ci/woodpecker/tag/build/1 Pipeline was successful
ci/woodpecker/tag/build/3 Pipeline was successful
ci/woodpecker/tag/build/2 Pipeline was successful
ci/woodpecker/tag/deploy/2 Pipeline was successful
ci/woodpecker/tag/deploy/3 Pipeline was successful
ci/woodpecker/tag/deploy/4 Pipeline was successful
ci/woodpecker/tag/deploy/1 Pipeline was successful
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
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"
|
|
when:
|
|
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
|
|
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
|
|
- kubectl apply -f deployment/mtls-config.yaml -n $NAMESPACE
|
|
when:
|
|
event: [tag]
|
|
|