Skip to content

Commit 5d4ece2

Browse files
Update release_tools
1 parent 6185fbf commit 5d4ece2

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ path = "src/seclab_taskflow_agent/__about__.py"
118118

119119
[tool.hatch.envs.default.scripts]
120120
main = "python -m seclab_taskflow_agent {args:tests}"
121+
sync-deps = ""
121122

122123
[tool.hatch.envs.types]
123124
extra-dependencies = [

release_tools/publish_docker.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,14 @@ def write_dockerfile(dest_dir, entrypoint):
7474
COPY . /app
7575
7676
# Install CodeQL pack dependencies
77-
RUN codeql pack install /app/mcp_servers/codeql/queries/mcp-cpp
78-
RUN codeql pack install /app/mcp_servers/codeql/queries/mcp-js
77+
RUN codeql pack install /app/src/seclab_taskflow_agent/mcp_servers/codeql/queries/mcp-cpp
78+
RUN codeql pack install /app/src/seclab_taskflow_agent/mcp_servers/codeql/queries/mcp-js
7979
80-
# Install Python dependencies if requirements.txt exists
81-
RUN if [ -f requirements.txt ]; then pip install --no-cache-dir -r requirements.txt; fi
80+
# Install Python dependencies if pyproject.toml exists
81+
RUN pip install hatch
82+
RUN if [ -f pyproject.toml ]; then hatch run sync-deps; fi
8283
83-
ENTRYPOINT ["python", "{entrypoint}"]
84+
ENTRYPOINT ["hatch", "run", "{entrypoint}"]
8485
'''
8586
with open(os.path.join(dest_dir, "Dockerfile"), "w") as f:
8687
f.write(dockerfile)

release_tools/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
python release_tools/publish_docker.py release.txt main.py ghcr.io/githubsecuritylab/seclab-taskflow-agent latest
2+
python release_tools/publish_docker.py release.txt main ghcr.io/githubsecuritylab/seclab-taskflow-agent latest

0 commit comments

Comments
 (0)