Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
278 commits
Select commit Hold shift + click to select a range
d988a3e
Productboard Minor Fix (#2303)
yuhongsun96 Sep 2, 2024
abe0114
Update CONTRIBUTING.md (#2298)
rkuo-danswer Sep 2, 2024
812ca69
Vespa Degraded Handling (#2304)
yuhongsun96 Sep 2, 2024
6afcaaf
Continue Generating (#2286)
pablonyx Sep 2, 2024
90528ba
k
yuhongsun96 Sep 3, 2024
39c9465
Fix deletion due to foreign key issue
Weves Sep 3, 2024
7520fae
Add back test
Weves Sep 3, 2024
a3b1b1d
fixed doc set table (#2306)
hagen-danswer Sep 3, 2024
5b1f3c8
Formatting nits (#2311)
pablonyx Sep 3, 2024
af66650
fail safely if lookup for document fails (#2309)
rkuo-danswer Sep 3, 2024
fb95398
Cleaner stream handling in Answer class (#2314)
pablonyx Sep 3, 2024
5da6d79
Add ingestion as a "Source" for the FE + improve typing (#2312)
Weves Sep 3, 2024
32359d2
Add user dropdown seed-able list (#2308)
pablonyx Sep 3, 2024
f96bd12
prevent accidental submission (#2318)
pablonyx Sep 3, 2024
ebce3ff
added wait for sync after creating document set in tests (#2319)
hagen-danswer Sep 4, 2024
d68d281
Slight copy update (#2322)
yuhongsun96 Sep 4, 2024
0ff1a02
Minor search setting clarity (#2300)
pablonyx Sep 4, 2024
2b7915f
Update Connector README PATH (#2323)
yuhongsun96 Sep 4, 2024
c358c91
Added instance domain to telemetry (#2310)
hagen-danswer Sep 4, 2024
630e224
fixing a race condition in celery task wrapper. could randomly blow u…
rkuo-danswer Sep 4, 2024
34ba318
Update auth for litellm proxy (#2316)
pablonyx Sep 4, 2024
e4c8535
made connectors summary page faster (#2320)
hagen-danswer Sep 4, 2024
61a1731
rename directory if needed
pablonyx Sep 4, 2024
420aabc
Update UX (#2324)
pablonyx Sep 5, 2024
04f83eb
Proper popover behavior, no showing queries with no docs, + bubbles (…
pablonyx Sep 5, 2024
ebe3674
update for edge case (#2336)
pablonyx Sep 5, 2024
2d7b312
harden indexing-status endpoint against db changes happening in the b…
rkuo-danswer Sep 5, 2024
2bd3833
Update search settings + chat/search handling (#2333)
pablonyx Sep 6, 2024
69c0419
Updated refreshing (#2327)
pablonyx Sep 6, 2024
8977b1b
Paginate connector page (#2328)
hagen-danswer Sep 6, 2024
aeb6060
Add ability to delete users (#2342)
pablonyx Sep 6, 2024
2933c35
first cut at redis (#2226)
rkuo-danswer Sep 6, 2024
5abf67f
PDF metadata + list defaults (#2341)
pablonyx Sep 6, 2024
491f325
regeneration - don't remove human message unnecessarily
pablonyx Sep 6, 2024
6cec310
CONTRIBUTING updates (#2354)
yuhongsun96 Sep 7, 2024
fb3d733
minor QOL improvement on first chat (#2353)
pablonyx Sep 7, 2024
350482e
Squash misc UX bugs (#2356)
pablonyx Sep 7, 2024
ccf9868
Add retries (#2358)
Weves Sep 8, 2024
7c03b6f
Fix responses for HTTPExceptions
Weves Sep 8, 2024
7d4f8ef
Minor Confluence Fixes for Robustification (#2349)
pablonyx Sep 8, 2024
b43e573
Use user information in Slack bot DMs (#2360)
hj-danswer Sep 8, 2024
c1735fc
Google Drive connector - txt and markdown support (#1469)
lombax85 Sep 8, 2024
e2e04af
Bump msal from 1.26.0 to 1.28.0 in /backend/requirements (#1626)
dependabot[bot] Sep 8, 2024
57c1deb
Bump braces from 3.0.2 to 3.0.3 in /web (#1628)
dependabot[bot] Sep 8, 2024
51a13f5
Implement indexing of simple tables in Word files (#1651)
artmatsak Sep 8, 2024
c8891a5
Remove LangChain Community (#2362)
yuhongsun96 Sep 8, 2024
d985cd4
Fix JIRA comment indexing when author has no email (#1663)
artmatsak Sep 8, 2024
0c66da1
Web Connector - Get doc_updated_at from `Last-Modified` header (#1693)
moshe Sep 8, 2024
1e4b271
Bump torch from 2.0.1 to 2.2.0 in /backend/requirements (#1933)
dependabot[bot] Sep 8, 2024
6012a7c
Fix multilingual .env embedding dimension (#1976)
bartschuller Sep 8, 2024
50211ec
Bump nltk from 3.8.1 to 3.9 in /backend/requirements (#2174)
dependabot[bot] Sep 8, 2024
5e9c6d1
Bump aiohttp from 3.9.4 to 3.10.2 in /backend/requirements (#2097)
dependabot[bot] Sep 8, 2024
87b2704
changes to the docker file for mac (#1773)
kshitiz305 Sep 8, 2024
0896d3b
Fix content extraction from JIRA with API v2 vs. v3 (#1678)
artmatsak Sep 8, 2024
b0568ac
Sharepoint: Fix get all sites (#1700)
mboret Sep 8, 2024
e20c825
Notion Connector to skip reading external blocks in NotionConnector
colachg Sep 8, 2024
80de408
Fix formatting
Weves Sep 8, 2024
1555ac9
More explicit credential creation flow (#2363)
pablonyx Sep 8, 2024
148c2a7
Remove wordnet (#2365)
yuhongsun96 Sep 8, 2024
ace0414
Clearer onboarding + Provider Updates (#2361)
pablonyx Sep 8, 2024
be4b618
Fix streaming auth locally (#2357)
Weves Sep 8, 2024
3fa9676
[1802] adjust the code to support a different db schemas (#1803)
stianrincon Sep 8, 2024
362156f
Model inference for connector classifier on queries (#2137)
Sep 8, 2024
f04ecbf
Un-bump nltk due to llamaindex issue
yuhongsun96 Sep 8, 2024
3a9b964
Add Litellm Rerank proxy (#2346)
pablonyx Sep 9, 2024
c967f53
docker versions have been deprecated for a while, so fixing the annoy…
rkuo-danswer Sep 9, 2024
e4e4765
Add user when they interact outside of UI (e.g. Slack bot) (#2369)
hj-danswer Sep 9, 2024
dbd56f9
address pablo's nits (#2368)
pablonyx Sep 9, 2024
a4dcae5
Google Drive Plaintext Types (#2371)
BaloMueller Sep 9, 2024
4558351
Zendesk tickets (#2192)
jwjordan Sep 9, 2024
aa86830
mypy
yuhongsun96 Sep 9, 2024
e563746
Consent screen (#2381)
pablonyx Sep 10, 2024
f52d114
Fail instead of continuing if vespa cannot be reached within the time…
rkuo-danswer Sep 10, 2024
99b2864
show groups if they exist for user (#2384)
pablonyx Sep 10, 2024
b7ad810
Prevent spam search (#2367)
pablonyx Sep 10, 2024
f1c5e80
Feature/background processing (#2275)
rkuo-danswer Sep 10, 2024
07f49a3
Update spread order (#2386)
pablonyx Sep 10, 2024
3a2a6ab
Add basic virtualization (#2370)
pablonyx Sep 10, 2024
9f6e8bd
Improve Dev Experience (#2347)
pablonyx Sep 10, 2024
0d749eb
add ccpair id to logging (#2391)
pablonyx Sep 11, 2024
d42fb6c
Add link to macOS contributions doc for installing Python 3.11 (#2396)
trial-danswer Sep 11, 2024
74a2271
Added HARD_DELETE_CHATS to environment variables (#2397)
hagen-danswer Sep 11, 2024
71f2f1a
fixes a bug with deleting connectors and foreign keys (#2398)
rkuo-danswer Sep 11, 2024
f4f2fb5
Bugfix/connector deletion test (#2402)
rkuo-danswer Sep 11, 2024
eab55bd
Misc clarifications for CONTRIBUTING.md (#2401)
trial-danswer Sep 11, 2024
2c971cf
add claude image-support
pablonyx Sep 11, 2024
d90c90d
simplify unnecessary display logic (#2406)
pablonyx Sep 11, 2024
2c77dd2
Add error table to re-indexing (#2388)
pablonyx Sep 11, 2024
aee5fcd
Add env variables for overriding embedding batch size (#2395)
pablonyx Sep 12, 2024
2654df4
Update CONTRIBUTING.md
yuhongsun96 Sep 12, 2024
d4d37c9
add bedrock models (#2405)
pablonyx Sep 12, 2024
f69922f
Add environment variable for setting vespa search threads (#2400)
pablonyx Sep 12, 2024
58bdf9d
Add connector deletion failure message (#2392)
pablonyx Sep 12, 2024
7af572d
display only failed (#2413)
pablonyx Sep 12, 2024
4bc4da2
add SSL parameter support for redis (#2389)
rkuo-danswer Sep 12, 2024
eebf98e
fix setting redis_scheme (#2416)
rkuo-danswer Sep 12, 2024
641690e
fix enabling ssl in connection pool (#2418)
rkuo-danswer Sep 12, 2024
a2d775e
Reformatted tailwind config (#2417)
pablonyx Sep 12, 2024
604ebaf
simple apis now cited/context doc indices (#2419)
hagen-danswer Sep 12, 2024
79aa5dd
add a tiny bit of clarity to index doc counts (#2414)
pablonyx Sep 12, 2024
cb2169f
Warm up reranker on model switch (#2408)
pablonyx Sep 12, 2024
e9a616e
Added search_doc_ids to the simple api to allow for skipping search (…
hagen-danswer Sep 12, 2024
da8e68b
reformat celery logging to match danswer style logging across service…
rkuo-danswer Sep 13, 2024
140c34e
ephemeral behavior for redis (#2373)
rkuo-danswer Sep 13, 2024
6dd9141
delete chat session immediately
pablonyx Sep 13, 2024
31ca685
Custom Refresh on Client Side (#2376)
pablonyx Sep 13, 2024
1327866
Update refresh + robustify embeddings (#2420)
pablonyx Sep 13, 2024
53008a0
update multipass indeixng server default
pablonyx Sep 13, 2024
f58acd4
Add redis to helm chart (#2390)
rkuo-danswer Sep 13, 2024
2fe49e5
add ssl testing for redis against a cloud instance (#2422)
rkuo-danswer Sep 13, 2024
566f44f
Minor update to llm image ability tracking (#2423)
pablonyx Sep 13, 2024
fc98c56
Add fix for logging (#2431)
pablonyx Sep 13, 2024
648c253
Add custom tool chat session / message ID dynamic prompting (#2404)
pablonyx Sep 13, 2024
da6e46a
Slack flow improvements (#2366)
Weves Sep 13, 2024
3cb00de
Support regex in standard answers (#2377)
hj-danswer Sep 14, 2024
d807ad7
fix document set connection removal sync, add tests for document set …
rkuo-danswer Sep 14, 2024
a63cb9d
fixed /danswer handling (#2436)
hagen-danswer Sep 14, 2024
974f85d
Migrate standard answers implementations to ee/ (#2378)
hj-danswer Sep 14, 2024
430c9a4
Match any/all keywords in Standard Answers (#2443)
trial-danswer Sep 14, 2024
ee27852
update indexing status clarity (#2446)
pablonyx Sep 14, 2024
a50c2e3
Very minor polish (#2445)
pablonyx Sep 14, 2024
a51b0f6
Logs from API Server Container on Merge Queue (#2448)
yuhongsun96 Sep 14, 2024
3c934a9
using is_up_to_date cached outside of the fence was causing a race co…
rkuo-danswer Sep 15, 2024
290f4f0
add some minor ux updates (#2441)
pablonyx Sep 15, 2024
3ff2ba7
k (#2450)
yuhongsun96 Sep 15, 2024
e2c37d6
Test stream + Update Copy (#2317)
pablonyx Sep 15, 2024
285bdbb
Fix stop generating locally (#2452)
pablonyx Sep 15, 2024
66cf67d
hotfix: sqlalchemy default -> server_default (#2442)
trial-danswer Sep 16, 2024
96b98fb
Make it impossible to switch to non-image (#2440)
pablonyx Sep 16, 2024
df464fc
Allow for CORS Origin Setting (#2449)
pablonyx Sep 16, 2024
2dd3870
Add ability to specify persona in API request (#2302)
pablonyx Sep 16, 2024
8b2ecb4
EE movement followup for Standard Answers (#2467)
trial-danswer Sep 16, 2024
7ba829a
Add top_documents to APIs (#2469)
Weves Sep 16, 2024
7f7559e
Allow users to share assistants (#2434)
pablonyx Sep 17, 2024
6bef70c
ensure disabled gets propagated
pablonyx Sep 17, 2024
84272af
Add back scrolling to ExceptionTraceModal (#2473)
Weves Sep 17, 2024
5b18409
Change user-message to user-prompt
Weves Sep 17, 2024
5596a68
harden migration (#2476)
rkuo-danswer Sep 17, 2024
72acde6
Handle tool errors in display properly (can show `valueError` to user…
pablonyx Sep 17, 2024
c5032d2
Minor clarity update for connectors (#2480)
pablonyx Sep 17, 2024
cd58c96
Memoize AI message component (#2483)
pablonyx Sep 17, 2024
632a8f7
Feature/celery backend db number (#2475)
rkuo-danswer Sep 17, 2024
75c9b1c
Fix concatenate string with toolcallkickoff issue (#2487)
Weves Sep 17, 2024
18fbe9d
Warn users of gpu-sensitive operation (#2488)
pablonyx Sep 17, 2024
a9427f1
Extend time range (contributor submission) (#2484)
pablonyx Sep 17, 2024
5f25b24
Add back llm_chunks_indices (#2491)
Weves Sep 18, 2024
2073820
Update default assistants to all visible (#2490)
pablonyx Sep 18, 2024
e662e3b
clarify ssl cert reqs (#2494)
rkuo-danswer Sep 18, 2024
4218814
Add flow to query history CSV (#2492)
Weves Sep 18, 2024
f531d07
Feature/background deletion (#2337)
rkuo-danswer Sep 18, 2024
7d1ec10
proper z index for chat bubbles (#2500)
pablonyx Sep 18, 2024
d3dfabb
fix parentheses (#2486)
pablonyx Sep 18, 2024
54bb793
corrected error message (#2502)
hagen-danswer Sep 18, 2024
f3cea79
Deleting a connector should redirect to the indexing status page (#2504)
hagen-danswer Sep 18, 2024
a940301
fix basic auth (#2505)
pablonyx Sep 18, 2024
bb279a8
add pip retries. should help with github's occasional flaky network d…
rkuo-danswer Sep 19, 2024
bc9d5fe
prevent trying to submit to jobclient when it can't take any more wor…
rkuo-danswer Sep 19, 2024
3884f1d
Bugfix/larger test runner (#2508)
rkuo-danswer Sep 19, 2024
f404c4b
Move code block default language creation to citation processing (#2501)
pablonyx Sep 19, 2024
a575d7f
Citations prompt for slack now includes thread history (#2510)
hagen-danswer Sep 19, 2024
ef104e9
Non-spotfix deletion of users (#2499)
pablonyx Sep 19, 2024
2274cab
Added permission syncing (#2340)
hagen-danswer Sep 19, 2024
8a8e2b3
Assistants panel rework (#2509)
pablonyx Sep 19, 2024
9f17994
Asana connector (community originated) (#2485)
pablonyx Sep 19, 2024
16d1c19
Added bool to disable chat_session_id check for search_docs for api
hagen-danswer Sep 20, 2024
c82a36a
Saml account fastapi deletion (#2512)
pablonyx Sep 20, 2024
5f26449
Route name (#2520)
pablonyx Sep 20, 2024
00229d2
Add start date to persona (#2407)
pablonyx Sep 20, 2024
87b542b
align alembic
pablonyx Sep 20, 2024
122e3fa
Access type (#2523)
pablonyx Sep 20, 2024
6d859bd
try adding build essential (#2526)
rkuo-danswer Sep 20, 2024
19dae1d
Wrote tests for the chat apis (#2525)
hagen-danswer Sep 20, 2024
05f6f6d
update default search assistant selection (#2527)
pablonyx Sep 20, 2024
33f5559
Fix duplicate users from slack / web (#2530)
Weves Sep 20, 2024
18c62a0
Add additional custom tooling configuration (#2426)
pablonyx Sep 20, 2024
ba64543
Updated modals for clarity (#2529)
pablonyx Sep 21, 2024
014ba9e
Begin distinguishing upsert operations for clarity (#2535)
pablonyx Sep 21, 2024
45f6736
Add support for o1 (#2538)
pablonyx Sep 22, 2024
34c2aa0
Support svg navigation items (#2542)
Weves Sep 23, 2024
316b6b9
Tooling testing (#2533)
pablonyx Sep 23, 2024
77650c9
Fix misc tool call errors (#2544)
Weves Sep 23, 2024
b66514c
test self hosted runner (#2541)
rkuo-danswer Sep 23, 2024
cb75449
Feature/runs on 2 (#2547)
rkuo-danswer Sep 23, 2024
c8d1392
rename classes and ignore deprecation warnings we mostly don't have c…
rkuo-danswer Sep 24, 2024
4872503
fix saml email login upsert issue
ThomaciousD Sep 24, 2024
8cfe80c
Added doc_set__user_group cleanup for user_group deletion (#2551)
hagen-danswer Sep 24, 2024
f5adc30
Update theming (#2552)
pablonyx Sep 24, 2024
ba38dec
ensure default_assistant passed through
pablonyx Sep 24, 2024
c59d1ff
Update merge queue logic (#2554)
pablonyx Sep 24, 2024
48577bf
Allow = in tag filter (#2548)
Weves Sep 24, 2024
6b3213b
fix typo (#2543)
trial-danswer Sep 25, 2024
f89504e
Update some ux edge cases (#2545)
pablonyx Sep 25, 2024
be50ae1
flex none (#2558)
pablonyx Sep 25, 2024
166514c
ssl_ca_certs should default to None, not "". (#2560)
rkuo-danswer Sep 25, 2024
ea4a3cb
update folder list (#2563)
pablonyx Sep 25, 2024
c5a61f4
Feature/test pruning (#2556)
rkuo-danswer Sep 25, 2024
b73d66c
Cleaned up foreign key cleanup for user group deletion (#2559)
hagen-danswer Sep 26, 2024
deee2b3
push to docker latest when git tag contains "latest", and tag nightly…
rkuo-danswer Sep 26, 2024
1f61447
Add open in new tab for custom links (#2568)
Weves Sep 26, 2024
6d48fd5
clamp retry to max_delay (#2570)
rkuo-danswer Sep 26, 2024
b97cc01
Added confluence permission syncing (#2537)
hagen-danswer Sep 26, 2024
fbf51b7
Feature/celery multi (#2470)
rkuo-danswer Sep 27, 2024
f9638f2
try user deploy key approach to tagging (#2575)
rkuo-danswer Sep 27, 2024
19e5747
Feature/xenforo (#2497)
rkuo-danswer Sep 27, 2024
66a4592
Minor role display refactor (#2578)
hagen-danswer Sep 27, 2024
50dd3c8
Add size limit to jira tickets (#2586)
Weves Sep 28, 2024
1cff2b8
Global Curator Fix + Testing (#2591)
hagen-danswer Sep 28, 2024
ff8db71
don't write a nightly tag to the same commit more than once (#2585)
rkuo-danswer Sep 29, 2024
5679f0a
Minor Query History Fix (#2594)
yuhongsun96 Sep 29, 2024
a392ef0
Show transition card if no connectors (#2597)
pablonyx Sep 29, 2024
15283b3
prevent `nextFormStep` unless credential fully set up (#2599)
pablonyx Sep 29, 2024
9155800
EKS initial deployment (#2154)
knapptimezzz Sep 29, 2024
e159b2e
Fix default assistant (#2600)
Weves Sep 29, 2024
ef8dda2
Rely on PVC (#2604)
Weves Sep 30, 2024
728a41a
Add heartbeat to indexing (#2595)
Weves Sep 30, 2024
b005690
Added permissions syncing for slack (#2602)
hagen-danswer Sep 30, 2024
3e51149
Fix overflow of prompt library table (#2606)
Weves Sep 30, 2024
f9a5b22
hotfix for vespa delete performance
rkuo-danswer Oct 3, 2024
74315e2
bump celery
rkuo-danswer Oct 3, 2024
9d18b92
fix sync checks
rkuo-danswer Oct 3, 2024
cfe4bbe
Merge branch 'release/v0.7' of github.com:danswer-ai/danswer into hot…
rkuo-danswer Oct 3, 2024
0bf9243
Merge branch 'release/v0.7' of github.com:danswer-ai/danswer into hot…
rkuo-danswer Oct 3, 2024
7c7f5b3
Merge pull request #2675 from danswer-ai/hotfix/v0.7-bump-celery
rkuo-danswer Oct 3, 2024
3ac84da
Merge pull request #2676 from danswer-ai/hotfix/v0.7-vespa-delete-per…
rkuo-danswer Oct 3, 2024
1966127
trivy workaround
rkuo-danswer Oct 3, 2024
756385e
Hotfix/v0.7 harden redis (#2683)
rkuo-danswer Oct 4, 2024
cb668bc
backport: rely on stdout redirection for supervisord logging (#2711)
rkuo-danswer Oct 7, 2024
2be133d
Merge pull request #2716 from danswer-ai/hotfix/v0.7-background-logs
rkuo-danswer Oct 7, 2024
0e6524d
Added quotes to project name to handle reserved words (#2639)
hagen-danswer Oct 1, 2024
1f0af86
Temp patch to remove multiple tool calls (#2720)
Weves Oct 8, 2024
906d77e
Merge pull request #2717 from danswer-ai/bugfix/docker-legacy-key-val…
rkuo-danswer Oct 8, 2024
0ae9f6e
Merge pull request #2746 from danswer-ai/hotfix/v0.7-docker-kv-deprec…
rkuo-danswer Oct 9, 2024
fd8644d
backport Update litellm to fix bedrock models (#2649)
rkuo-danswer Oct 9, 2024
7f9fdbd
Merge pull request #2750 from danswer-ai/hotfix/v0.7-bedrock
rkuo-danswer Oct 9, 2024
5258e6e
update indexing and slack bot to use stdout options (#2752)
rkuo-danswer Oct 10, 2024
a4f1bb9
Merge pull request #2753 from danswer-ai/hotfix/v0.7-supervisor-logs
rkuo-danswer Oct 10, 2024
5c53e82
Merge tag 'v0.7.4' into update/upstream-0.7.4
Oct 16, 2024
e07bbf4
Fixup workflows
Oct 16, 2024
b199c2e
Update chart and app versions for prerelease testing
Oct 16, 2024
83103ac
Disable broken arm builds for frontend container
Oct 16, 2024
ff1e65c
Only tag images built on main as latest
Oct 16, 2024
be4ec97
Add example tinyproxy config for header auth testing
Oct 16, 2024
bcfc65f
Fix chart paths
Oct 16, 2024
64aae17
Fix chart values paths
Oct 16, 2024
26f0f3c
Bump chart version for testing
Oct 16, 2024
e45b521
Move Azimuth UI files into new chart dir
Oct 16, 2024
03ac1a2
Fix buggy CSS
Oct 17, 2024
76760a1
Bump versions for testing
Oct 17, 2024
8cf62aa
Update image tag stackhpc-prerelease.3 -> stackhpc.4
Oct 17, 2024
8f22a5e
Bump Helm chart to v0.2.3
Oct 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
76 changes: 76 additions & 0 deletions .github/actions/custom-build-and-push/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: 'Build and Push Docker Image with Retry'
description: 'Attempts to build and push a Docker image, with a retry on failure'
inputs:
context:
description: 'Build context'
required: true
file:
description: 'Dockerfile location'
required: true
platforms:
description: 'Target platforms'
required: true
pull:
description: 'Always attempt to pull a newer version of the image'
required: false
default: 'true'
push:
description: 'Push the image to registry'
required: false
default: 'true'
load:
description: 'Load the image into Docker daemon'
required: false
default: 'true'
tags:
description: 'Image tags'
required: true
cache-from:
description: 'Cache sources'
required: false
cache-to:
description: 'Cache destinations'
required: false
retry-wait-time:
description: 'Time to wait before retry in seconds'
required: false
default: '5'

runs:
using: "composite"
steps:
- name: Build and push Docker image (First Attempt)
id: buildx1
uses: docker/build-push-action@v5
continue-on-error: true
with:
context: ${{ inputs.context }}
file: ${{ inputs.file }}
platforms: ${{ inputs.platforms }}
pull: ${{ inputs.pull }}
push: ${{ inputs.push }}
load: ${{ inputs.load }}
tags: ${{ inputs.tags }}
cache-from: ${{ inputs.cache-from }}
cache-to: ${{ inputs.cache-to }}

- name: Wait to retry
if: steps.buildx1.outcome != 'success'
run: |
echo "First attempt failed. Waiting ${{ inputs.retry-wait-time }} seconds before retry..."
sleep ${{ inputs.retry-wait-time }}
shell: bash

- name: Build and push Docker image (Retry Attempt)
if: steps.buildx1.outcome != 'success'
uses: docker/build-push-action@v5
with:
context: ${{ inputs.context }}
file: ${{ inputs.file }}
platforms: ${{ inputs.platforms }}
pull: ${{ inputs.pull }}
push: ${{ inputs.push }}
load: ${{ inputs.load }}
tags: ${{ inputs.tags }}
cache-from: ${{ inputs.cache-from }}
cache-to: ${{ inputs.cache-to }}
21 changes: 20 additions & 1 deletion .github/workflows/docker-build-push-backend-container-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ on:

env:
REGISTRY_IMAGE: ghcr.io/stackhpc/danswer/danswer-backend
LATEST_TAG: ${{ contains(github.ref_name, 'latest') }}

jobs:
build-and-push:
# TODO: investigate a matrix build like the web container
# See https://runs-on.com/runners/linux/
# NOTE(sd109): Can't use Danswer custom runners here
runs-on: ubuntu-latest

steps:
Expand All @@ -35,21 +39,36 @@ jobs:
type=raw,value=${{ github.ref_name }}
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}

- name: Install build-essential
run: |
sudo apt-get update
sudo apt-get install -y build-essential

- name: Backend Image Docker Build and Push
uses: docker/build-push-action@v5
with:
context: ./backend
file: ./backend/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: |
${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
${{ env.LATEST_TAG == 'true' && format('{0}:latest', env.REGISTRY_IMAGE) || '' }}
build-args: |
DANSWER_VERSION=${{ github.ref_name }}
cache-from: type=registry,ref=${{ env.REGISTRY_IMAGE }}:buildcache
cache-to: type=registry,ref=${{ env.REGISTRY_IMAGE}}:buildcache,mode=max

# trivy has their own rate limiting issues causing this action to flake
# we worked around it by hardcoding to different db repos in env
# can re-enable when they figure it out
# https://github.com/aquasecurity/trivy/discussions/7538
# https://github.com/aquasecurity/trivy-action/issues/389
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
env:
TRIVY_DB_REPOSITORY: 'public.ecr.aws/aquasecurity/trivy-db:2'
TRIVY_JAVA_DB_REPOSITORY: 'public.ecr.aws/aquasecurity/trivy-java-db:1'
with:
# To run locally: trivy image --severity HIGH,CRITICAL danswer/danswer-backend
image-ref: ${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ on:

env:
REGISTRY_IMAGE: ghcr.io/stackhpc/danswer/danswer-model-server
LATEST_TAG: ${{ contains(github.ref_name, 'latest') }}

jobs:
build-and-push:
# NOTE(sd109): Can't use Danswer custom runners here
runs-on: ubuntu-latest

steps:
Expand All @@ -35,14 +37,22 @@ jobs:
push: true
tags: |
${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
${{ env.REGISTRY_IMAGE }}:latest
${{ env.LATEST_TAG == 'true' && format('{0}:latest', env.REGISTRY_IMAGE) || '' }}
build-args: |
DANSWER_VERSION=${{ github.ref_name }}
cache-from: type=gha
cache-to: type=gha,mode=max

# trivy has their own rate limiting issues causing this action to flake
# we worked around it by hardcoding to different db repos in env
# can re-enable when they figure it out
# https://github.com/aquasecurity/trivy/discussions/7538
# https://github.com/aquasecurity/trivy-action/issues/389
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
env:
TRIVY_DB_REPOSITORY: 'public.ecr.aws/aquasecurity/trivy-db:2'
TRIVY_JAVA_DB_REPOSITORY: 'public.ecr.aws/aquasecurity/trivy-java-db:1'
with:
image-ref: ${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
severity: 'CRITICAL,HIGH'
160 changes: 118 additions & 42 deletions .github/workflows/docker-build-push-web-container-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,50 +7,126 @@ on:

env:
REGISTRY_IMAGE: ghcr.io/stackhpc/danswer/danswer-web-server
LATEST_TAG: ${{ contains(github.ref_name, 'latest') }}

jobs:
build-and-push:
build:
# NOTE(sd109): Can't use Danswer custom runners here
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
# NOTE(sd109): Arm builds currently failing with error seen here:
# https://github.com/stackhpc/danswer/actions/runs/11368042561/job/31622167035#step:7:366
# - linux/arm64

steps:
- name: Checkout code
uses: actions/checkout@v4

- 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.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=raw,value=${{ github.ref_name }}
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}

- name: Web Image Docker Build and Push
uses: docker/build-push-action@v5
with:
context: ./web
file: ./web/Dockerfile
platforms: linux/amd64 #,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
build-args: |
DANSWER_VERSION=${{ github.ref_name }}
cache-from: type=registry,ref=${{ env.REGISTRY_IMAGE }}:buildcache
cache-to: type=registry,ref=${{ env.REGISTRY_IMAGE}}:buildcache,mode=max

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
# To run locally: trivy image --severity HIGH,CRITICAL danswer/danswer-web
image-ref: ${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
severity: 'CRITICAL,HIGH'
- 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 }}:${{ github.ref_name }}
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}

- 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.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push by digest
id: build
uses: docker/build-push-action@v5
with:
context: ./web
file: ./web/Dockerfile
platforms: ${{ matrix.platform }}
push: true
build-args: |
DANSWER_VERSION=${{ github.ref_name }}
# needed due to weird interactions with the builds for different platforms
no-cache: true
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true

- name: Export digest
run: |
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"

- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1

merge:
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Download digests
uses: actions/download-artifact@v4
with:
path: /tmp/digests
pattern: digests-*
merge-multiple: true

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Create manifest list and push
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)

- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}

# trivy has their own rate limiting issues causing this action to flake
# we worked around it by hardcoding to different db repos in env
# can re-enable when they figure it out
# https://github.com/aquasecurity/trivy/discussions/7538
# https://github.com/aquasecurity/trivy-action/issues/389
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
env:
TRIVY_DB_REPOSITORY: 'public.ecr.aws/aquasecurity/trivy-db:2'
TRIVY_JAVA_DB_REPOSITORY: 'public.ecr.aws/aquasecurity/trivy-java-db:1'
with:
image-ref: ${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
severity: 'CRITICAL,HIGH'
7 changes: 6 additions & 1 deletion .github/workflows/docker-tag-latest.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This workflow is set up to be manually triggered via the GitHub Action tab.
# Given a version, it will tag those backend and webserver images as "latest".

name: Tag Latest Version

on:
Expand All @@ -9,7 +12,9 @@ on:

jobs:
tag:
runs-on: ubuntu-latest
# See https://runs-on.com/runners/linux/
# use a lower powered instance since this just does i/o to docker hub
runs-on: [runs-on,runner=2cpu-linux-x64,"run-id=${{ github.run_id }}"]
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
Expand Down
Loading
Loading