debug
This commit is contained in:
parent
aa90991a14
commit
4b6be4f4e8
51
.drone.yml
51
.drone.yml
|
@ -1,15 +1,3 @@
|
||||||
kind: secret
|
|
||||||
name: POSTGRES_PASSWORD
|
|
||||||
get:
|
|
||||||
path: secrets
|
|
||||||
name: POSTGRES_PASSWORD
|
|
||||||
---
|
|
||||||
kind: secret
|
|
||||||
name: CLICKHOUSE_PASSWORD
|
|
||||||
get:
|
|
||||||
path: secrets
|
|
||||||
name: CLICKHOUSE_PASSWORD
|
|
||||||
---
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: healthcheck
|
name: healthcheck
|
||||||
|
@ -18,45 +6,8 @@ trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
services:
|
|
||||||
- name: kubectl-proxy-postgres
|
|
||||||
image: bitnami/kubectl
|
|
||||||
network_mode: host
|
|
||||||
environment:
|
|
||||||
KUBE_CONFIG:
|
|
||||||
from_secret: KUBE_CONFIG
|
|
||||||
commands:
|
|
||||||
- echo "$$KUBE_CONFIG" | base64 -d > /.kube/config
|
|
||||||
- kubectl -n databases port-forward pod/postgres-0 5432:5432
|
|
||||||
- name: kubectl-proxy-clickhouse
|
|
||||||
image: bitnami/kubectl
|
|
||||||
network_mode: host
|
|
||||||
environment:
|
|
||||||
KUBE_CONFIG:
|
|
||||||
from_secret: KUBE_CONFIG
|
|
||||||
commands:
|
|
||||||
- echo "$$KUBE_CONFIG" | base64 -d > /.kube/config
|
|
||||||
- kubectl -n databases port-forward pod/clickhouse-0 8123:8123
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: install
|
|
||||||
image: node:20.10.0
|
|
||||||
commands:
|
|
||||||
- npm install
|
|
||||||
- name: build
|
|
||||||
image: node:20.10.0
|
|
||||||
commands:
|
|
||||||
- npm run build
|
|
||||||
- name: test
|
- name: test
|
||||||
image: node:20.10.0
|
image: node:20.10.0
|
||||||
commands:
|
commands:
|
||||||
- npm run test
|
- echo test
|
||||||
environment:
|
|
||||||
POSTGRES_HOST: localhost
|
|
||||||
POSTGRES_DATABASE: nocodelytics_production
|
|
||||||
POSTGRES_PASSWORD:
|
|
||||||
from_secret: POSTGRES_PASSWORD
|
|
||||||
CLICKHOUSE_HOST: http://localhost:8123
|
|
||||||
CLICKHOUSE_DATABASE: nocodelytics_production
|
|
||||||
CLICKHOUSE_PASSWORD:
|
|
||||||
from_secret: CLICKHOUSE_PASSWORD
|
|
||||||
|
|
Loading…
Reference in New Issue