Compare commits
13 Commits
f60d5d03e9
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
84e401778e
|
|||
|
4ee3c13d3e
|
|||
|
d685366c09
|
|||
|
07b28e2f1f
|
|||
|
39bfb66098
|
|||
|
75860cd1c2
|
|||
|
bcbb58ea36
|
|||
|
b38ed75261
|
|||
|
feb055b2ea
|
|||
|
cce730b2fa
|
|||
|
a26901037d
|
|||
|
4889f5ed8b
|
|||
|
804e9bf742
|
@@ -6,18 +6,36 @@ matrix:
|
|||||||
- rules
|
- rules
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
show:
|
||||||
|
image: quay.io/wollud1969/networktools:latest
|
||||||
|
environment:
|
||||||
|
forge_name:
|
||||||
|
from_secret: forge_name
|
||||||
|
container_registry:
|
||||||
|
from_secret: container_registry
|
||||||
|
container_registry_username:
|
||||||
|
from_secret: container_registry_username
|
||||||
|
container_registry_password:
|
||||||
|
from_secret: container_registry_password
|
||||||
|
commands:
|
||||||
|
- echo $${forge_name} | base64
|
||||||
|
- echo $${container_registry} | base64
|
||||||
|
- echo $${container_registry_username} | base64
|
||||||
|
- echo $${container_registry_password} | base64
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko
|
||||||
settings:
|
settings:
|
||||||
repo: ${FORGE_NAME}/${CI_REPO}/${APP}
|
repo: ${FORGE_NAME}/${CI_REPO}/${APP}
|
||||||
registry:
|
|
||||||
from_secret: container_registry
|
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
username:
|
|
||||||
from_secret: container_registry_username
|
|
||||||
password:
|
|
||||||
from_secret: container_registry_password
|
|
||||||
dockerfile: apps/${APP}/Dockerfile
|
dockerfile: apps/${APP}/Dockerfile
|
||||||
|
username:
|
||||||
|
from_secret: docker_hub_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_hub_password
|
||||||
when:
|
when:
|
||||||
event: [push, tag]
|
event: [push, tag]
|
||||||
ref:
|
ref:
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ steps:
|
|||||||
from_secret: kube_config
|
from_secret: kube_config
|
||||||
NAMESPACE: "homea2"
|
NAMESPACE: "homea2"
|
||||||
commands:
|
commands:
|
||||||
- kubectl create namespace ${NAMESPACE} || echo "Namespace ${NAMESPACE} already exists"
|
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
||||||
|
- export KUBECONFIG=/tmp/kubeconfig
|
||||||
|
- kubectl create namespace $NAMESPACE || echo "Namespace $NAMESPACE already exists"
|
||||||
when:
|
when:
|
||||||
event: [tag]
|
event: [tag]
|
||||||
ref:
|
ref:
|
||||||
@@ -20,7 +22,9 @@ steps:
|
|||||||
from_secret: kube_config
|
from_secret: kube_config
|
||||||
NAMESPACE: "homea2"
|
NAMESPACE: "homea2"
|
||||||
commands:
|
commands:
|
||||||
kubectl create configmap home-automation-config
|
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
||||||
|
- export KUBECONFIG=/tmp/kubeconfig
|
||||||
|
- kubectl create configmap home-automation-config
|
||||||
--from-file=devices=config/devices.yaml
|
--from-file=devices=config/devices.yaml
|
||||||
--from-file=groups=config/groups.yaml
|
--from-file=groups=config/groups.yaml
|
||||||
--from-file=layout=config/layout.yaml
|
--from-file=layout=config/layout.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user