Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
b7de1c880e
|
|||
7b527a9242
|
|||
608156280d
|
|||
9f960857f8
|
@ -21,8 +21,6 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
||||||
- export KUBECONFIG=/tmp/kubeconfig
|
- export KUBECONFIG=/tmp/kubeconfig
|
||||||
- cd ${CI_WORKSPACE}
|
- cat $CI_WORKSPACE/deployment/deploy-yml.tmpl | sed -e 's,%IMAGE%,gitea.hottis.de/'$CI_REPO':'$CI_COMMIT_TAG',' | kubectl apply -f - -n mainscnt
|
||||||
- cat deploy-yml.tmpl | sed -e 's,%IMAGE%,gitea.hottis.de/'${CI_REPO}':'${CI_COMMIT_TAG}',' > deploy.yml
|
|
||||||
- cat deploy.yml
|
|
||||||
when:
|
when:
|
||||||
- event: tag
|
- event: tag
|
||||||
|
50
deployment/deploy-yml.tmpl
Normal file
50
deployment/deploy-yml.tmpl
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: sinkserver
|
||||||
|
namespace: mainscnt
|
||||||
|
labels:
|
||||||
|
app: sinkserver
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: sinkserver
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: sinkserver
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: sinkserver
|
||||||
|
image: %IMAGE%
|
||||||
|
ports:
|
||||||
|
- containerPort: 20169
|
||||||
|
protocol: UDP
|
||||||
|
env:
|
||||||
|
- name: PGHOST
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: sinkserver-config
|
||||||
|
key: dbhost
|
||||||
|
- name: PGPASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: sinkserver-secret
|
||||||
|
key: dbpass
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: sinkserver
|
||||||
|
namespace: mainscnt
|
||||||
|
labels:
|
||||||
|
app: sinkserver
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
selector:
|
||||||
|
app: sinkserver
|
||||||
|
ports:
|
||||||
|
- protocol: UDP
|
||||||
|
port: 20169
|
||||||
|
targetPort: 20169
|
@ -301,7 +301,7 @@ void usage() {
|
|||||||
printf("https://home.hottis.de/gitlab/wolutator/mains-frequency-counter-rpi,\n");
|
printf("https://home.hottis.de/gitlab/wolutator/mains-frequency-counter-rpi,\n");
|
||||||
printf("https://github.com/wollud1969/sinkConvert1\n");
|
printf("https://github.com/wollud1969/sinkConvert1\n");
|
||||||
printf("Repo: https://home.hottis.de/gitlab/wolutator/sinkserver\n");
|
printf("Repo: https://home.hottis.de/gitlab/wolutator/sinkserver\n");
|
||||||
printf("Version: " VERSION "\n");
|
printf("Version: " VERSION " XXX\n");
|
||||||
printf("\nUsage\n");
|
printf("\nUsage\n");
|
||||||
printf(" -f FILENAME ...... Config file to be used\n");
|
printf(" -f FILENAME ...... Config file to be used\n");
|
||||||
printf(" -v ............... Verbose, writes all logging on stdout too\n");
|
printf(" -v ............... Verbose, writes all logging on stdout too\n");
|
||||||
|
Reference in New Issue
Block a user