revert opencode to version 1.x
CI / Build opencode docker images (push) Successful in 14m7s

This commit is contained in:
woggioni committed 2026-09-22 20:37:47 +08:00
1 parent 75fff0e585
commit e467762441
2 files changed
+23 -22

No files matched your search

+20 -20
View File
@@ -17,25 +17,25 @@ jobs:
registry: gitea.woggioni.net registry: gitea.woggioni.net
username: woggioni username: woggioni
password: ${{ secrets.PUBLISHER_TOKEN }} password: ${{ secrets.PUBLISHER_TOKEN }}
# - -
# name: Build and push opencode binary images name: Build and push opencode binary images
# uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
# with: with:
# builder: multiplatform-builder builder: multiplatform-builder
# context: "{{defaultContext}}:opencode" context: "{{defaultContext}}:opencode"
# ssh: default=/var/lib/gitea-runner/.ssh/id_ed25519 ssh: default=/var/lib/gitea-runner/.ssh/id_ed25519
# target: release-bin target: release-bin
# build-args: | build-args: |
# OPENCODE_VERSION=2.0.12 OPENCODE_VERSION=1.18.32
# BUN_VERSION=1.4.2 BUN_VERSION=1.4.2
# platforms: | platforms: |
# linux/amd64 linux/amd64
# push: true push: true
# pull: true pull: true
# tags: | tags: |
# "gitea.woggioni.net/woggioni/opencode:2.0.12-bin" "gitea.woggioni.net/woggioni/opencode:2.0.12-bin"
# "gitea.woggioni.net/woggioni/opencode:2.0.12" "gitea.woggioni.net/woggioni/opencode:2.0.12"
# "gitea.woggioni.net/woggioni/opencode:latest" "gitea.woggioni.net/woggioni/opencode:latest"
- -
name: Build and push opencode build-from-source images name: Build and push opencode build-from-source images
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
@@ -45,7 +45,7 @@ jobs:
ssh: default=/var/lib/gitea-runner/.ssh/id_ed25519 ssh: default=/var/lib/gitea-runner/.ssh/id_ed25519
target: release target: release
build-args: | build-args: |
OPENCODE_VERSION=2.0.12 OPENCODE_VERSION=1.18.32
BUN_VERSION=1.4.2 BUN_VERSION=1.4.2
platforms: | platforms: |
linux/amd64 linux/amd64
+3 -2
View File
@@ -14,12 +14,13 @@ USER builder
WORKDIR /home/builder WORKDIR /home/builder
ADD --chown=builder:builder --keep-git-dir=true git@github.com:anomalyco/opencode.git#v${OPENCODE_VERSION} opencode ADD --chown=builder:builder --keep-git-dir=true git@github.com:anomalyco/opencode.git#v${OPENCODE_VERSION} opencode
WORKDIR /home/builder/opencode WORKDIR /home/builder/opencode
ENV BUN_COMPILE_RELEASE=bun-v${BUN_VERSION} ENV BUN_COMPILE_RELEASE=bun-v${BUN_VERSION}
ENV OPENCODE_CHANNEL=prod ENV OPENCODE_CHANNEL=prod
ENV OPENCODE_VERSION=${OPENCODE_VERSION} ENV OPENCODE_VERSION=${OPENCODE_VERSION}
RUN --mount=type=cache,target=/home/builder/.bun/install/cache,uid=1126 bun install RUN --mount=type=cache,target=/home/builder/.bun/install/cache,uid=1126 bun install
#ADD --chown=builder:builder ./build.ts ./packages/cli/script/build.ts --single ADD --chown=builder:builder ./build.ts ./packages/opencode/script/build.ts
RUN --mount=type=cache,target=/home/builder/.bun/install/cache,uid=1126 ./packages/cli/script/build.ts --single RUN --mount=type=cache,target=/home/builder/.bun/install/cache,uid=1126 ./packages/opencode/script/build.ts