mirror of
https://git.cluster.stumblestore.de/llamprecht/KnilchWeb.git
synced 2025-12-15 00:51:19 +01:00
added Service to deployment and improved Image Tagging
This commit is contained in:
parent
41f508ed42
commit
1207e2a6f3
3 changed files with 24 additions and 9 deletions
11
.drone.yml
11
.drone.yml
|
|
@ -22,7 +22,7 @@ steps:
|
||||||
settings:
|
settings:
|
||||||
repo: git.cluster.stumblestore.de/llamprecht/knilch-web
|
repo: git.cluster.stumblestore.de/llamprecht/knilch-web
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
|
tags: ${DRONE_COMMIT} ${DRONE_BRANCH}
|
||||||
registry: git.cluster.stumblestore.de
|
registry: git.cluster.stumblestore.de
|
||||||
username: llamprecht
|
username: llamprecht
|
||||||
password:
|
password:
|
||||||
|
|
@ -31,7 +31,7 @@ steps:
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: danielgormly/drone-plugin-kube
|
image: danielgormly/drone-plugin-kube
|
||||||
settings:
|
settings:
|
||||||
template: deployment.yaml
|
template: kube.yaml
|
||||||
namespace: knilch-web
|
namespace: knilch-web
|
||||||
server:
|
server:
|
||||||
from_secret: KUBE_SERVER
|
from_secret: KUBE_SERVER
|
||||||
|
|
@ -39,9 +39,6 @@ steps:
|
||||||
from_secret: KUBE_TOKEN
|
from_secret: KUBE_TOKEN
|
||||||
ca:
|
ca:
|
||||||
from_secret: KUBE_CA
|
from_secret: KUBE_CA
|
||||||
|
|
||||||
when:
|
when:
|
||||||
event:
|
branch:
|
||||||
- promote
|
- master
|
||||||
target:
|
|
||||||
- production
|
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
||||||
node_modules
|
node_modules
|
||||||
built/main.js
|
built/main.js
|
||||||
|
.vscode
|
||||||
|
|
@ -18,4 +18,21 @@ spec:
|
||||||
- name: knilch-server
|
- name: knilch-server
|
||||||
image: git.cluster.stumblestore.de/llamprecht/knilch-web
|
image: git.cluster.stumblestore.de/llamprecht/knilch-web
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
|
||||||
|
--
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: knilch-server
|
||||||
|
name: knilch-server
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 80
|
||||||
|
selector:
|
||||||
|
app: knilch-server
|
||||||
|
|
||||||
Loading…
Reference in a new issue