Archived
fix: allow OpenCode SDK to write to config directory in executor
This commit is contained in:
+4
-1
@@ -59,7 +59,10 @@ RUN npm install --global --omit=dev "opencode-ai@${OPENCODE_VERSION}" \
|
|||||||
&& rm -f "/tmp/${asset}" /tmp/gitea-mcp
|
&& rm -f "/tmp/${asset}" /tmp/gitea-mcp
|
||||||
|
|
||||||
COPY opencode /opt/ci-agents/opencode
|
COPY opencode /opt/ci-agents/opencode
|
||||||
RUN chmod -R a-w /opt/ci-agents
|
RUN chmod -R a-w /opt/ci-agents \
|
||||||
|
&& chmod -R u+w /opt/ci-agents/empty-config \
|
||||||
|
&& chown -R ci-agent /opt/ci-agents/opencode \
|
||||||
|
&& chown -R ci-agent /opt/ci-agents/empty-config
|
||||||
|
|
||||||
ENV XDG_DATA_HOME=/var/lib/opencode-agent/data \
|
ENV XDG_DATA_HOME=/var/lib/opencode-agent/data \
|
||||||
XDG_CONFIG_HOME=/opt/ci-agents/empty-config \
|
XDG_CONFIG_HOME=/opt/ci-agents/empty-config \
|
||||||
|
|||||||
Reference in New Issue
Block a user