fix
All checks were successful
Deploy Dev / Build (pull_request) Successful in 58s
Deploy Dev / Push (pull_request) Successful in 40s
Deploy Dev / Deploy dev (pull_request) Successful in 13s

This commit is contained in:
Egor Matveev 2025-06-13 02:01:16 +03:00
parent 54801c4060
commit 861f830816
3 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,8 @@ services:
networks:
- common-infra-nginx-development
- clickhouse-development
environment:
CLICKHOUSE_PASSWORD: $CLICKHOUSE_PASSWORD_DEV
deploy:
mode: replicated
restart_policy:

View File

@ -38,4 +38,6 @@ jobs:
with:
ref: dev
- name: deploy
env:
CLICKHOUSE_PASSWORD_DEV: ${{ secrets.CLICKHOUSE_PASSWORD_DEV }}
run: docker stack deploy --with-registry-auth -c ./.deploy/deploy-dev.yaml infra-development

View File

@ -3,6 +3,7 @@ package storage
import (
"context"
"fmt"
"os"
"github.com/ClickHouse/clickhouse-go/v2"
"github.com/ClickHouse/clickhouse-go/v2/lib/driver"
@ -27,6 +28,7 @@ func connect() (*driver.Conn, error) {
Auth: clickhouse.Auth{
Database: "monitoring",
Username: "default",
Password: os.Getenv("CLICKHOUSE_PASSWORD"),
},
TLS: nil,
})