updated opencode image
All checks were successful
CI / Build opencode docker images (push) Successful in 54s

This commit is contained in:
2026-03-13 04:18:16 +08:00
parent 410234687a
commit 4a55196cd2
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.17 OPENCODE_VERSION=1.2.24
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.17" "gitea.woggioni.net/woggioni/opencode:1.2.24"
"gitea.woggioni.net/woggioni/opencode:1.2.17-alpine3.23" "gitea.woggioni.net/woggioni/opencode:1.2.24-alpine3.23"
"gitea.woggioni.net/woggioni/opencode:1.2.17-alpine" "gitea.woggioni.net/woggioni/opencode:1.2.24-alpine"
"gitea.woggioni.net/woggioni/opencode:latest" "gitea.woggioni.net/woggioni/opencode:latest"

View File

@@ -20,7 +20,8 @@ ADD https://github.com/anomalyco/opencode/releases/download/v${OPENCODE_VERSION}
FROM builder-${TARGETPLATFORM//\//_} AS release FROM builder-${TARGETPLATFORM//\//_} AS release
RUN tar -xvf ./opencode.tgz -C /usr/bin RUN tar -xvf ./opencode.tgz -C /usr/bin
RUN rm opencode.tgz RUN rm opencode.tgz
ADD --chown=opencode:opencode ./opencode.json /var/lib/opencode/.config/opencode/opencode.json ADD --chown=opencode:opencode ./opencode.json /etc/opencode/opencode.json
ENV OPENCODE_CONFIG=/etc/opencode/opencode.json
USER opencode USER opencode
WORKDIR /workspace WORKDIR /workspace
ENTRYPOINT ["opencode"] ENTRYPOINT ["opencode"]