Skip to content

Commit

Permalink
🔥 add node/bun/deno build command
Browse files Browse the repository at this point in the history
  • Loading branch information
zuisong committed Jan 19, 2024
1 parent 1b695e3 commit e82dc7c
Show file tree
Hide file tree
Showing 14 changed files with 9,008 additions and 4,361 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

permissions:
contents: read
packages: write

on:
push:
workflow_dispatch:

env:
IMAGE_TAG: ${{ github.ref_name }}
IMAGE_NAME: ghcr.io/${{ github.repository }}

jobs:
build-image:
strategy:
fail-fast: false
matrix:
include:
- runtime: deno
- runtime: node
- runtime: bun
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: docker/${{ matrix.runtime }}.Dockerfile
platforms: linux/amd64,linux/arm64
push: false
tags: |
${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}_${{ matrix.runtime }}
${{ env.IMAGE_NAME }}:${{ matrix.runtime }}
7 changes: 0 additions & 7 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json",
"nodeModulesDir": false,
"imports": {
"@google/generative-ai": "npm:/@google/generative-ai",
"hono/": "npm:/[email protected]/",
"hono": "npm:/[email protected]",
"dotenv": "npm:/dotenv",
"openai": "npm:/openai"
},
"lock": false,
"exclude": [
"node_modules",
Expand Down
Loading

1 comment on commit e82dc7c

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on e82dc7c Jan 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Module not found "file:///src/dist/main_deno.js".

Please sign in to comment.