Compare commits

...

2 Commits

Author SHA1 Message Date
650c77aca6 bump opencode to 1.2.26
All checks were successful
CI / Build opencode docker images (push) Successful in 9m59s
2026-03-14 12:15:24 +08:00
3708900fd6 added helix to opencode image 2026-03-14 12:14:07 +08:00
2 changed files with 6 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ jobs:
builder: multiplatform-builder builder: multiplatform-builder
context: "{{defaultContext}}:opencode" context: "{{defaultContext}}:opencode"
build-args: | build-args: |
OPENCODE_VERSION=1.2.24 OPENCODE_VERSION=1.2.26
ALPINE_VERSION=3.23 ALPINE_VERSION=3.23
platforms: | platforms: |
linux/amd64 linux/amd64
@@ -32,8 +32,8 @@ jobs:
push: true push: true
pull: true pull: true
tags: | tags: |
"gitea.woggioni.net/woggioni/opencode:1.2.24" "gitea.woggioni.net/woggioni/opencode:1.2.26"
"gitea.woggioni.net/woggioni/opencode:1.2.24-alpine3.23" "gitea.woggioni.net/woggioni/opencode:1.2.26-alpine3.23"
"gitea.woggioni.net/woggioni/opencode:1.2.24-alpine" "gitea.woggioni.net/woggioni/opencode:1.2.26-alpine"
"gitea.woggioni.net/woggioni/opencode:latest" "gitea.woggioni.net/woggioni/opencode:latest"

View File

@@ -1,7 +1,7 @@
ARG ALPINE_VERSION=latest ARG ALPINE_VERSION=latest
FROM --platform=$BUILDPLATFORM alpine:${ALPINE_VERSION} AS base FROM --platform=$BUILDPLATFORM alpine:${ALPINE_VERSION} AS base
RUN --mount=type=cache,target=/var/cache/apk apk update RUN --mount=type=cache,target=/var/cache/apk apk update
RUN --mount=type=cache,target=/var/cache/apk apk add rust-analyzer openjdk25-jdk jdtls pipx ripgrep git RUN --mount=type=cache,target=/var/cache/apk apk add rust-analyzer openjdk25-jdk jdtls pipx ripgrep git helix helix-tree-sitter-vendor
RUN adduser -D -h /var/lib/opencode opencode RUN adduser -D -h /var/lib/opencode opencode
RUN mkdir /workspace RUN mkdir /workspace
RUN chown opencode:opencode /workspace RUN chown opencode:opencode /workspace
@@ -24,6 +24,7 @@ ADD --chown=opencode:opencode ./opencode.json /etc/opencode/opencode.json
RUN mkdir -p /usr/lib/opencode/addons RUN mkdir -p /usr/lib/opencode/addons
ADD --chmod=644 https://repo1.maven.org/maven2/org/projectlombok/lombok/1.18.44/lombok-1.18.44.jar /usr/lib/opencode/addons/lombok.jar ADD --chmod=644 https://repo1.maven.org/maven2/org/projectlombok/lombok/1.18.44/lombok-1.18.44.jar /usr/lib/opencode/addons/lombok.jar
ENV OPENCODE_CONFIG=/etc/opencode/opencode.json ENV OPENCODE_CONFIG=/etc/opencode/opencode.json
ENV EDITOR=hx
USER opencode USER opencode
WORKDIR /workspace WORKDIR /workspace
ENTRYPOINT ["opencode"] ENTRYPOINT ["opencode"]