Skip to content

Commit 5044e2c

Browse files
authored
Merge branch 'main' into ci/fix-conformance-kubeconfig
2 parents fc49760 + ec6016c commit 5044e2c

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/agent-image-smoke.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v6
2222

23-
- name: Guard: skip when uv.lock is absent
23+
- name: "Guard: skip when uv.lock is absent"
2424
id: guard
2525
run: |
2626
if [ ! -f images/hermes-agent/uv.lock ]; then
@@ -51,11 +51,14 @@ jobs:
5151
-t hermes-agent:smoke \
5252
images/hermes-agent
5353
54-
- name: Smoke: --help exits 0
54+
- name: "Smoke: --help exits 0"
5555
if: steps.guard.outputs.skip != 'true'
56-
run: docker run --rm hermes-agent:smoke hermes-agent --help >/dev/null
56+
# Bypass hermes-entrypoint: it requires a mounted config for every
57+
# command (exit 78 otherwise, covered by the next step), so --help can
58+
# only be exercised against the CLI directly.
59+
run: docker run --rm --entrypoint hermes-agent hermes-agent:smoke --help >/dev/null
5760

58-
- name: Smoke: entrypoint refuses missing config with EX_CONFIG (78)
61+
- name: "Smoke: entrypoint refuses missing config with EX_CONFIG (78)"
5962
if: steps.guard.outputs.skip != 'true'
6063
run: |
6164
set +e
@@ -66,7 +69,7 @@ jobs:
6669
exit 1
6770
fi
6871
69-
- name: Smoke: non-root by default
72+
- name: "Smoke: non-root by default"
7073
if: steps.guard.outputs.skip != 'true'
7174
run: |
7275
uid=$(docker run --rm --entrypoint id hermes-agent:smoke -u)

images/hermes-agent/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ COPY --from=uv /uv /uvx /usr/local/bin/
3333
ENV UV_LINK_MODE=copy \
3434
UV_COMPILE_BYTECODE=1 \
3535
UV_PYTHON_DOWNLOADS=never \
36-
VIRTUAL_ENV=/opt/venv
36+
VIRTUAL_ENV=/opt/venv \
37+
UV_PROJECT_ENVIRONMENT=/opt/venv
3738

3839
WORKDIR /build
3940

0 commit comments

Comments
 (0)