diff --git a/.drone.yml b/.drone.yml index 4a14873..202899b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,7 +22,7 @@ steps: settings: repo: git.cluster.stumblestore.de/llamprecht/knilch-web auto_tag: true - + tags: ${DRONE_COMMIT} ${DRONE_BRANCH} registry: git.cluster.stumblestore.de username: llamprecht password: @@ -31,7 +31,7 @@ steps: - name: deploy image: danielgormly/drone-plugin-kube settings: - template: deployment.yaml + template: kube.yaml namespace: knilch-web server: from_secret: KUBE_SERVER @@ -39,9 +39,6 @@ steps: from_secret: KUBE_TOKEN ca: from_secret: KUBE_CA - when: - event: - - promote - target: - - production \ No newline at end of file + branch: + - master \ No newline at end of file diff --git a/.gitignore b/.gitignore index 8cac25a..8d09a3e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules -built/main.js \ No newline at end of file +built/main.js +.vscode \ No newline at end of file diff --git a/deployment.yaml b/kube.yaml similarity index 62% rename from deployment.yaml rename to kube.yaml index 5a0f22d..5c6ed01 100644 --- a/deployment.yaml +++ b/kube.yaml @@ -18,4 +18,21 @@ spec: - name: knilch-server image: git.cluster.stumblestore.de/llamprecht/knilch-web ports: - - containerPort: 80 \ No newline at end of file + - 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 +