Skip to content

Commit a05b9b6

Browse files
committed
fix docker container
1 parent 378a917 commit a05b9b6

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/update-vector-map.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ jobs:
1818
with:
1919
fetch-depth: 0 # Повна історія для режиму diff
2020

21-
- name: Configure Git safe directory
22-
run: git config --global --add safe.directory /github/workspace
23-
2421
- name: Update Vector Code Map
2522
uses: forproxyband/vector-code-map@main
2623
env:

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
FROM node:18-slim
22

33
RUN apt-get update && apt-get install -y git
4-
RUN git config --global --add safe.directory /github/workspace
54

65
WORKDIR /app
76

index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,16 @@ async function run() {
1818

1919
// Підключаємося до векторної бази даних
2020
let dbAdapter;
21-
21+
22+
const { execSync } = require('child_process');
23+
try {
24+
execSync('git config --global --add safe.directory /github/workspace');
25+
console.log('Added /github/workspace as safe directory');
26+
} catch (error) {
27+
console.error('Failed to configure safe directory:', error.message);
28+
}
29+
30+
2231
if (dbType === 'chromadb') {
2332
const chromaHost = core.getInput('chroma_host', { required: true });
2433
const chromaPort = core.getInput('chroma_port') || '8000';

0 commit comments

Comments
 (0)