59 lines
1.6 KiB
YAML
59 lines
1.6 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 images
|
|
# uses: docker/build-push-action@v6
|
|
# with:
|
|
# builder: multiplatform-builder
|
|
# context: "{{defaultContext}}:opencode"
|
|
# build-args: |
|
|
# OPENCODE_VERSION=1.18.4
|
|
# platforms: |
|
|
# linux/amd64
|
|
# push: true
|
|
# pull: true
|
|
# tags: |
|
|
# "gitea.woggioni.net/woggioni/opencode:1.18.4"
|
|
# "gitea.woggioni.net/woggioni/opencode:latest"
|
|
build-from-source:
|
|
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 images
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
builder: multiplatform-builder
|
|
context: "{{defaultContext}}:opencode"
|
|
file: "{context}/from_source.dockerfile"
|
|
build-args: |
|
|
VERSION=1.18.4
|
|
platforms: |
|
|
linux/amd64
|
|
push: false
|
|
pull: true
|
|
|