Files
docker-images/.gitea/workflows/build-opencode.yaml
T
woggioni 75fff0e585
CI / Build opencode docker images (push) Failing after 14m13s
updated opencode to 2.0.12
2026-09-22 17:20:46 +08:00

56 lines
1.7 KiB
YAML

name: CI
on:
push:
branches: [ master ]
paths:
- 'opencode/*'
- '.gitea/workflows/build-opencode.yaml'
jobs:
"Build opencode docker images":
runs-on: hostinger
steps:
-
name: Login to Gitea container registry
uses: docker/login-action@v3
with:
registry: gitea.woggioni.net
username: woggioni
password: ${{ secrets.PUBLISHER_TOKEN }}
# -
# name: Build and push opencode binary images
# uses: docker/build-push-action@v6
# with:
# builder: multiplatform-builder
# context: "{{defaultContext}}:opencode"
# ssh: default=/var/lib/gitea-runner/.ssh/id_ed25519
# target: release-bin
# build-args: |
# OPENCODE_VERSION=2.0.12
# BUN_VERSION=1.4.2
# platforms: |
# linux/amd64
# push: true
# pull: true
# tags: |
# "gitea.woggioni.net/woggioni/opencode:2.0.12-bin"
# "gitea.woggioni.net/woggioni/opencode:2.0.12"
# "gitea.woggioni.net/woggioni/opencode:latest"
-
name: Build and push opencode build-from-source images
uses: docker/build-push-action@v6
with:
builder: multiplatform-builder
context: "{{defaultContext}}:opencode"
ssh: default=/var/lib/gitea-runner/.ssh/id_ed25519
target: release
build-args: |
OPENCODE_VERSION=2.0.12
BUN_VERSION=1.4.2
platforms: |
linux/amd64
push: true
pull: true
tags: |
"gitea.woggioni.net/woggioni/opencode:2.0.12-bfs"