forked from danswer-ai/danswer
-
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.
Signed-off-by: Alex Co <alex.tuan@mindvalley.com>
- Loading branch information
Showing
421 changed files
with
22,363 additions
and
3,998 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
.github/workflows/docker-build-backend-container-on-merge-group.yml
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,35 @@ | ||
name: Build Backend Image on Merge Group | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
merge_group: | ||
types: [checks_requested] | ||
|
||
env: | ||
REGISTRY_IMAGE: danswer/danswer-backend | ||
|
||
jobs: | ||
build: | ||
# TODO: make this a matrix build like the web containers | ||
runs-on: | ||
group: amd64-image-builders | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Backend Image Docker Build | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: ./backend | ||
file: ./backend/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
push: false | ||
tags: | | ||
${{ env.REGISTRY_IMAGE }}:latest | ||
build-args: | | ||
DANSWER_VERSION=v0.0.1 |
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
55 changes: 55 additions & 0 deletions
55
.github/workflows/docker-build-web-container-on-merge-group.yml
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,55 @@ | ||
name: Build Web Image on Merge Group | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
merge_group: | ||
types: [checks_requested] | ||
|
||
env: | ||
REGISTRY_IMAGE: danswer/danswer-web-server | ||
|
||
jobs: | ||
build: | ||
runs-on: | ||
group: ${{ matrix.platform == 'linux/amd64' && 'amd64-image-builders' || 'arm64-image-builders' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: | ||
- linux/amd64 | ||
- linux/arm64 | ||
|
||
steps: | ||
- name: Prepare | ||
run: | | ||
platform=${{ matrix.platform }} | ||
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY_IMAGE }} | ||
tags: | | ||
type=raw,value=${{ env.REGISTRY_IMAGE }}:latest | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build by digest | ||
id: build | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: ./web | ||
file: ./web/Dockerfile | ||
platforms: ${{ matrix.platform }} | ||
push: false | ||
build-args: | | ||
DANSWER_VERSION=v0.0.1 | ||
# needed due to weird interactions with the builds for different platforms | ||
no-cache: true | ||
labels: ${{ steps.meta.outputs.labels }} |
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
.venv | ||
.mypy_cache | ||
.idea | ||
.python-version | ||
/deployment/data/nginx/app.conf | ||
.vscode/launch.json | ||
*.sw? |
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
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.