Skip to content

Commit

Permalink
add logger and release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
spikelu2016 committed Aug 1, 2023
1 parent a495e30 commit fa5f688
Show file tree
Hide file tree
Showing 25 changed files with 1,650 additions and 175 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: goreleaser

on:
push:
tags:
- '*'

permissions:
contents: write
packages: write
issues: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:

- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.19.x
check-latest: true

- name: Check Out Repo
uses: actions/checkout@v4

- name: Release Notes
run: ./resources/scripts/release_notes.sh > ./release_notes.md

- name: GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --release-notes=./release_notes.md --timeout 60m
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 29 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
builds:
- id: bricksllm
main: cmd/bricksllm/main.go
binary: bricksllm
goos: [ windows, darwin, linux ]
goarch: [ amd64, arm, arm64 ]
goarm: ["6", "7"]
ignore:
- goos: windows
goarch: arm
- goos: darwin
goarch: arm
env:
- CGO_ENABLED=0
archives:
- id: bricksllm
builds: [ bricksllm ]
format: tar.gz
files:
- README.md
- CHANGELOG.md
- LICENSE
dist: target/dist
release:
github:
owner: bricks-cloud
name: bricks
prerelease: auto
disable: false
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## 0.0.1 - 2023-07-31
### Added
- Added a http web server for hosting `openai` prompts
- Added a `yaml` parser for reading bricksllm configurations
- Added support for [`cors`](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) configuration in the web server
- Added support for specifying `input` json schema
- Added support for `{input.field}` like syntax in the prompt template
- Added comprehensive logging in production and developer mode
- Added logger configuration for hiding sensitive fields using the `logger` field
- Added support for API key authenticaiton with `key_auth` field
7 changes: 7 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2023 Bricks Cloud Technologies, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit fa5f688

Please sign in to comment.