This commit is contained in:
parent
a65b991307
commit
6564722727
@ -14,3 +14,20 @@ steps:
|
||||
when:
|
||||
- event: [push, tag]
|
||||
|
||||
deploy:
|
||||
image: portainer/kubectl-shell:latest
|
||||
secrets:
|
||||
- source: kube_config
|
||||
target: KUBE_CONFIG_CONTENT
|
||||
- source: encryption_key
|
||||
target: ENCRYPTION_KEY
|
||||
- source: secrets_checksum
|
||||
target: MD5_CHECKSUM
|
||||
commands:
|
||||
- export IMAGE_TAG=$CI_COMMIT_TAG
|
||||
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
||||
- export KUBECONFIG=/tmp/kubeconfig
|
||||
- cat ./deployment/install-yml.tmpl | sed -e 's,%IMAGETAG%,'$IMAGE_TAG','g | kubectl apply -f -
|
||||
when:
|
||||
- event: tag
|
||||
|
||||
|
@ -1,13 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: pv-controller
|
||||
name: homea
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: pv-controller
|
||||
namespace: pv-controller
|
||||
namespace: homea
|
||||
data:
|
||||
MQTT__BROKER: "emqx01-anonymous-cluster-internal.broker.svc.cluster.local"
|
||||
MQTT__PORT: "1883"
|
||||
@ -20,7 +20,7 @@ apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: pv-controller
|
||||
namespace: pv-controller
|
||||
namespace: homea
|
||||
labels:
|
||||
app: pv-controller
|
||||
spec:
|
||||
@ -35,7 +35,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: pv-controller
|
||||
image: wollud1969/pv-controller:1.0.8
|
||||
image: gitea.hottis.de/wn/pv-controller:%IMAGE%
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: pv-controller
|
Loading…
x
Reference in New Issue
Block a user