Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
a26901037d
|
|||
|
4889f5ed8b
|
|||
|
804e9bf742
|
|||
|
f60d5d03e9
|
|||
|
eff88e1d2f
|
|||
|
d027163087
|
|||
|
4051ca22a4
|
|||
|
2608e935b8
|
|||
|
51f3b4f227
|
|||
|
006359687f
|
|||
|
f26d304890
|
|||
|
6feec48ac6
|
|||
|
ed6ed66a37
|
|||
|
09498dd0e5
|
|||
|
41f5e06e30
|
|||
|
7769c6066a
|
|||
|
5f23e28cc0
|
|||
|
cc083c1055
|
@@ -1,8 +1,15 @@
|
|||||||
|
matrix:
|
||||||
|
APP:
|
||||||
|
- ui
|
||||||
|
- api
|
||||||
|
- abstraction
|
||||||
|
- rules
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
build_ui:
|
build:
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko
|
||||||
settings:
|
settings:
|
||||||
repo: ${FORGE_NAME}/${CI_REPO}-ui
|
repo: ${FORGE_NAME}/${CI_REPO}/${APP}
|
||||||
registry:
|
registry:
|
||||||
from_secret: container_registry
|
from_secret: container_registry
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
@@ -10,6 +17,9 @@ steps:
|
|||||||
from_secret: container_registry_username
|
from_secret: container_registry_username
|
||||||
password:
|
password:
|
||||||
from_secret: container_registry_password
|
from_secret: container_registry_password
|
||||||
dockerfile: apps/ui/Dockerfile
|
dockerfile: apps/${APP}/Dockerfile
|
||||||
when:
|
when:
|
||||||
- event: [push, tag]
|
event: [push, tag]
|
||||||
|
ref:
|
||||||
|
exclude:
|
||||||
|
- refs/tags/*-configchange
|
||||||
37
.woodpecker/predeploy.yml
Normal file
37
.woodpecker/predeploy.yml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
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=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