summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2026-01-29 23:07:58 -0500
committerDax Raad <[email protected]>2026-01-29 23:07:58 -0500
commit5cfb5fdd0664632956056a1004ab1857a8eb3673 (patch)
treedf571be285045a90ae461ce73a966d24f95146a1 /.github/workflows
parent30969dc33e20858a9b7773aa19ad345335a644c1 (diff)
downloadopencode-5cfb5fdd0664632956056a1004ab1857a8eb3673.tar.gz
opencode-5cfb5fdd0664632956056a1004ab1857a8eb3673.zip
ci: add container build workflow
Add prebuilt build images and a publish workflow to speed CI by reusing heavy dependencies.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/containers.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml
new file mode 100644
index 000000000..0ce640665
--- /dev/null
+++ b/.github/workflows/containers.yml
@@ -0,0 +1,38 @@
+name: containers
+
+on:
+ push:
+ branches:
+ - dev
+ paths:
+ - packages/containers/**
+ - .github/workflows/containers.yml
+ workflow_dispatch:
+
+permissions:
+ contents: read
+ packages: write
+
+jobs:
+ build:
+ runs-on: blacksmith-4vcpu-ubuntu-2404
+ env:
+ REGISTRY: ghcr.io/${{ github.repository_owner }}
+ TAG: "24.04"
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: ./.github/actions/setup-bun
+
+ - name: Login to GHCR
+ uses: docker/login-action@v3
+ with:
+ registry: ghcr.io
+ username: ${{ github.repository_owner }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Build and push containers
+ run: bun ./packages/containers/script/build.ts --push
+ env:
+ REGISTRY: ${{ env.REGISTRY }}
+ TAG: ${{ env.TAG }}