-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'website/feb-2024-update' of https://github.com/janhq/jan …
…into website/feb-2024-update
- Loading branch information
Showing
90 changed files
with
1,735 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Jan Build Docker Nightly or Manual | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- feature/helmchart-and-ci-jan-server | ||
paths-ignore: | ||
- 'README.md' | ||
- 'docs/**' | ||
schedule: | ||
- cron: '0 20 * * 1,2,3' # At 8 PM UTC on Monday, Tuesday, and Wednesday which is 3 AM UTC+7 Tuesday, Wednesday, and Thursday | ||
workflow_dispatch: | ||
|
||
jobs: | ||
# Job create Update app version based on latest release tag with build number and save to output | ||
get-update-version: | ||
uses: ./.github/workflows/template-get-update-version.yml | ||
|
||
build-cpu: | ||
uses: ./.github/workflows/template-build-jan-server.yml | ||
permissions: | ||
packages: write | ||
secrets: inherit | ||
needs: [get-update-version] | ||
with: | ||
dockerfile_path: ./Dockerfile | ||
docker_image_tag: "ghcr.io/janhq/jan-server:dev-cpu-latest,ghcr.io/janhq/jan-server:dev-cpu-${{ needs.get-update-version.outputs.new_version }}" | ||
|
||
build-gpu: | ||
uses: ./.github/workflows/template-build-jan-server.yml | ||
permissions: | ||
packages: write | ||
secrets: inherit | ||
needs: [get-update-version] | ||
with: | ||
dockerfile_path: ./Dockerfile.gpu | ||
docker_image_tag: "ghcr.io/janhq/jan-server:dev-cuda-12.2-latest,ghcr.io/janhq/jan-server:dev-cuda-12.2-${{ needs.get-update-version.outputs.new_version }}" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Jan Build Docker | ||
|
||
on: | ||
push: | ||
tags: ["v[0-9]+.[0-9]+.[0-9]+"] | ||
|
||
jobs: | ||
# Job create Update app version based on latest release tag with build number and save to output | ||
get-update-version: | ||
uses: ./.github/workflows/template-get-update-version.yml | ||
|
||
build-cpu: | ||
permissions: | ||
packages: write | ||
uses: ./.github/workflows/template-build-jan-server.yml | ||
secrets: inherit | ||
needs: [get-update-version] | ||
with: | ||
dockerfile_path: ./Dockerfile | ||
docker_image_tag: "ghcr.io/janhq/jan-server:cpu-latest,ghcr.io/janhq/jan-server:cpu-${{ needs.get-update-version.outputs.new_version }}" | ||
|
||
build-gpu: | ||
permissions: | ||
packages: write | ||
uses: ./.github/workflows/template-build-jan-server.yml | ||
secrets: inherit | ||
needs: [get-update-version] | ||
with: | ||
dockerfile_path: ./Dockerfile.gpu | ||
docker_image_tag: "ghcr.io/janhq/jan-server:cuda-12.2-latest,ghcr.io/janhq/jan-server:cuda-12.2-${{ needs.get-update-version.outputs.new_version }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: build-jan-server | ||
on: | ||
workflow_call: | ||
inputs: | ||
dockerfile_path: | ||
required: false | ||
type: string | ||
default: './Dockerfile' | ||
docker_image_tag: | ||
required: true | ||
type: string | ||
default: 'ghcr.io/janhq/jan-server:dev-latest' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: janhq/jan-server | ||
permissions: | ||
packages: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
file: ${{ inputs.dockerfile_path }} | ||
push: true | ||
tags: ${{ inputs.docker_image_tag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.