mirror of
https://git.cluster.stumblestore.de/llamprecht/KnilchWeb.git
synced 2025-12-15 03:01:19 +01:00
47 lines
No EOL
846 B
YAML
47 lines
No EOL
846 B
YAML
kind: pipeline
|
|
type: kubernetes
|
|
name: default
|
|
|
|
steps:
|
|
- name: check for Hardcoded Credentials
|
|
image: plugins/gitleaks
|
|
|
|
- name: woke check
|
|
image: getwoke/woke
|
|
commands:
|
|
- woke
|
|
|
|
- name: build
|
|
image: node
|
|
commands:
|
|
- npm install typescript
|
|
- npx tsc
|
|
|
|
- name: build docker file and publish
|
|
image: plugins/docker
|
|
settings:
|
|
repo: git.cluster.stumblestore.de/llamprecht/knilch-web
|
|
auto_tag: true
|
|
|
|
registry: git.cluster.stumblestore.de
|
|
username: llamprecht
|
|
password:
|
|
from_secret: docker_password
|
|
|
|
- name: deploy
|
|
image: danielgormly/drone-plugin-kube
|
|
settings:
|
|
template: deployment.yaml
|
|
namespace: knilch-web
|
|
server:
|
|
from_secret: KUBE_SERVER
|
|
token:
|
|
from_secret: KUBE_TOKEN
|
|
ca:
|
|
from_secret: KUBE_CA
|
|
|
|
when:
|
|
event:
|
|
- promote
|
|
target:
|
|
- production |