Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed CockroachDB to YugabyteDB to use only open source #311

Open
wants to merge 916 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
916 commits
Select commit Hold shift + click to select a range
cd95931
implement new orchestrator rescheduler
apCognixCh Jun 6, 2024
2c55510
implement new orchestrator rescheduler
apCognixCh Jun 6, 2024
01352c6
implement youtube connector
apCognixCh Jun 6, 2024
6e19704
Merge pull request #197 from gen-mind/feature/youtube-connector
apCognixCh Jun 6, 2024
8facc57
added database md
gsantopaolo Jun 6, 2024
09d7e41
Merge remote-tracking branch 'origin/develop' into semantic-6
gsantopaolo Jun 6, 2024
251fca6
db
gsantopaolo Jun 6, 2024
3376bf1
Merge branch 'semantic-6' into feature/semantic-5
gsantopaolo Jun 6, 2024
6ead2f3
Merge pull request #199 from gen-mind/feature/semantic-5
gsantopaolo Jun 6, 2024
10a1fda
UI fixes
OlehLitvin Jun 6, 2024
7dddf90
Merge branch 'develop' of github.com:gen-mind/cognix into ui-bug-fix
OlehLitvin Jun 6, 2024
157cd68
Merge pull request #200 from gen-mind/ui-bug-fix
OlehLitvinPecode Jun 6, 2024
ebe894a
Merge branch 'refs/heads/develop' into feature/orchestrator-condition
apCognixCh Jun 7, 2024
ecbead7
add test cases
apCognixCh Jun 7, 2024
67d4645
work on observability
gsantopaolo Jun 7, 2024
7ca2146
Merge pull request #202 from gen-mind/semantic-6
gsantopaolo Jun 7, 2024
e2948aa
add test cases
apCognixCh Jun 7, 2024
1673c01
Merge branch 'refs/heads/develop' into feature/orchestrator-condition
apCognixCh Jun 7, 2024
173bd9f
Merge pull request #201 from gen-mind/feature/orchestrator-condition
gsantopaolo Jun 7, 2024
0d31353
remove unused volumes from docker compose
apCognixCh Jun 7, 2024
c2bc14e
Merge pull request #203 from gen-mind/refactoring-docker-compose-env
gsantopaolo Jun 7, 2024
24faaa2
add msteams connector
apCognixCh Jun 7, 2024
ecfd66a
adjust edit connector endpoint for modifying status.
apCognixCh Jun 7, 2024
ea36a03
add refresh frequency min value
apCognixCh Jun 7, 2024
8cf8857
change value for initial connector status
apCognixCh Jun 7, 2024
96b1049
Merge pull request #204 from gen-mind/patch/modify-connector-status
apaladiychuk Jun 7, 2024
b77f178
work on observability
gsantopaolo Jun 7, 2024
6268d36
modified all deployments
nowelh Jun 7, 2024
21d1d55
Merge pull request #206 from gen-mind/prep-main-branch
gsantopaolo Jun 7, 2024
390124c
Merge pull request #190 from gen-mind/develop
noelhermans Jun 8, 2024
7a703bd
fix workflows for connector,orachestrator,semantic
nowelh Jun 8, 2024
30b72c5
Merge pull request #207 from gen-mind/nhr-fix-issues
noelhermans Jun 8, 2024
70cfcf4
Merge pull request #208 from gen-mind/develop
noelhermans Jun 8, 2024
65cfd14
fixing name of services
nowelh Jun 8, 2024
f56da71
remove unused service definition
nowelh Jun 8, 2024
ba53c2a
Merge pull request #209 from gen-mind/nhr-fix-issues
noelhermans Jun 8, 2024
0e12878
Merge pull request #210 from gen-mind/develop
noelhermans Jun 8, 2024
719e7de
removed unused service from connector deployment
nowelh Jun 8, 2024
a760472
Merge pull request #211 from gen-mind/nhr-fix-issues
noelhermans Jun 8, 2024
7e94fac
Merge pull request #212 from gen-mind/develop
noelhermans Jun 8, 2024
15cfa34
documentation standards
nowelh Jun 8, 2024
b69005e
Merge pull request #213 from gen-mind/nhr-fix-issues
noelhermans Jun 8, 2024
b2e3434
work on text extraction
gsantopaolo Jun 9, 2024
0a82b2b
work on text extraction
gsantopaolo Jun 9, 2024
2b431a2
work on semantic
gsantopaolo Jun 9, 2024
a235928
work on semantic
gsantopaolo Jun 9, 2024
98bb98d
work
gsantopaolo Jun 9, 2024
561ef22
Merge pull request #214 from gen-mind/feature/semantic-7
gsantopaolo Jun 9, 2024
68d1386
change orchestrator condition
apCognixCh Jun 10, 2024
d18a5a2
Merge branch 'refs/heads/develop' into feature/ms-teams
apCognixCh Jun 10, 2024
a2684bf
work on pfd
gsantopaolo Jun 10, 2024
49c9633
work on semantic
gsantopaolo Jun 10, 2024
60d8187
Merge pull request #216 from gen-mind/feature/semantic-8
gsantopaolo Jun 10, 2024
a716aad
work on connectors
gsantopaolo Jun 10, 2024
db534d8
add msteams
apCognixCh Jun 10, 2024
cbcc5f5
change migration docker file
apCognixCh Jun 10, 2024
a673f34
work on semantic
gsantopaolo Jun 10, 2024
d760889
Merge pull request #218 from gen-mind/patch/migration-docker
noelhermans Jun 10, 2024
e56f943
add msteams doc
apCognixCh Jun 11, 2024
650df3b
work on url
gsantopaolo Jun 11, 2024
229c9de
Merge pull request #219 from gen-mind/feature/sematic-10
gsantopaolo Jun 11, 2024
edf7182
add msteams doc
apCognixCh Jun 11, 2024
66bc632
add log
apCognixCh Jun 11, 2024
4caaab3
implement msteams
apCognixCh Jun 11, 2024
fcbd949
Merge pull request #215 from gen-mind/patch/orchestrator-rules
gsantopaolo Jun 11, 2024
407a818
work on url
gsantopaolo Jun 11, 2024
6186635
Merge pull request #220 from gen-mind/feature/sematinc-11
gsantopaolo Jun 11, 2024
c53f66c
updated proto
gsantopaolo Jun 11, 2024
c40bbcd
updated proto
gsantopaolo Jun 11, 2024
bb4b499
updated proto
gsantopaolo Jun 11, 2024
c0566ba
Merge remote-tracking branch 'origin/feature/sematinc-11' into featur…
gsantopaolo Jun 11, 2024
d495fe1
Merdge remote-tracking branch 'origin/feature/sematinc-11' into featu…
gsantopaolo Jun 11, 2024
ee3907e
Merge branch 'feature/sematinc-11' of github.com:gen-mind/cognix into…
gsantopaolo Jun 11, 2024
339913b
fix sending embedding model name
apCognixCh Jun 11, 2024
51232c0
update proto
gsantopaolo Jun 11, 2024
af12b70
Merdge remote-tracking branch 'origin/feature/sematinc-11' into featu…
gsantopaolo Jun 11, 2024
1ab8faa
changes to proto 5th time i try to apply
gsantopaolo Jun 11, 2024
9bda36a
Merge pull request #221 from gen-mind/path/connector_embedding_model
gsantopaolo Jun 11, 2024
b625311
Merge pull request #222 from gen-mind/feature/sematinc-11
gsantopaolo Jun 11, 2024
31342cd
update proto definition of supported file types
apCognixCh Jun 11, 2024
0473889
Merge branch 'refs/heads/develop' into feature/ms-teams
apCognixCh Jun 11, 2024
9165756
msteam
apCognixCh Jun 11, 2024
43f407a
update
gsantopaolo Jun 11, 2024
c85dc13
msteam
apCognixCh Jun 12, 2024
cd39b24
remove rtf file type
apCognixCh Jun 12, 2024
d9eea55
Merge pull request #223 from gen-mind/proto-file-compatibility
apaladiychuk Jun 12, 2024
b34bc48
Merge pull request #224 from gen-mind/develop
apaladiychuk Jun 12, 2024
55cbec2
revert proto definition filetype
apCognixCh Jun 12, 2024
7089488
Merge pull request #225 from gen-mind/patch/proto-file
apaladiychuk Jun 12, 2024
8a86b9c
milvus user pass
gsantopaolo Jun 13, 2024
4b57074
fix
gsantopaolo Jun 13, 2024
21d38fc
add user password to milvus client
apCognixCh Jun 13, 2024
6075f3a
Merge pull request #227 from gen-mind/bug/milvus_userr
apCognixCh Jun 13, 2024
f7f6d6b
fix
gsantopaolo Jun 13, 2024
63a4f50
Merge pull request #228 from gen-mind/bug/milvus-2
apCognixCh Jun 13, 2024
53acb4b
add user pass
gsantopaolo Jun 13, 2024
71d0809
Merge remote-tracking branch 'origin/develop' into feature/semantic-13
gsantopaolo Jun 13, 2024
3a7e700
Merge pull request #229 from gen-mind/feature/semantic-13
apCognixCh Jun 13, 2024
5dc2452
Merge branch 'main' into develop
apaladiychuk Jun 13, 2024
327bfc0
Merge pull request #230 from gen-mind/develop
apaladiychuk Jun 13, 2024
0a22d67
fix db
gsantopaolo Jun 13, 2024
6bc809f
Merge pull request #231 from gen-mind/feature/semantic-13
apCognixCh Jun 13, 2024
49eedc3
Merge pull request #232 from gen-mind/develop
apaladiychuk Jun 13, 2024
a0a5a23
fix youtube connector condition
apCognixCh Jun 13, 2024
ca577c2
Merge pull request #233 from gen-mind/path/yt
apaladiychuk Jun 13, 2024
e6ea431
Merge pull request #234 from gen-mind/main
apaladiychuk Jun 13, 2024
9706cd1
Merge remote-tracking branch 'refs/remotes/origin/develop' into featu…
apCognixCh Jun 13, 2024
bb0de90
changes to semantic factory
gsantopaolo Jun 14, 2024
a1ab1c7
msteams
apCognixCh Jun 14, 2024
98d64af
implement new supported filetypes
apCognixCh Jun 14, 2024
bdc0e1b
Merge branch 'refs/heads/proto-file-types' into feature/ms-teams
apCognixCh Jun 14, 2024
466c847
Merge pull request #235 from gen-mind/proto-file-types
gsantopaolo Jun 14, 2024
bdb27f0
some work on docs
gsantopaolo Jun 14, 2024
ca7668c
Merge remote-tracking branch 'origin/develop' into feature/onedrive-1
gsantopaolo Jun 14, 2024
c4fa121
refactoring drive client
apCognixCh Jun 17, 2024
c0dbcc1
Merge branch 'refs/heads/develop' into feature/ms-teams
apCognixCh Jun 17, 2024
b9a729f
refactoring drive client
apCognixCh Jun 18, 2024
e8c8486
delete unused files from minio, milvus, cockroach
apCognixCh Jun 19, 2024
693e78a
adjust config and deployment script
apCognixCh Jun 19, 2024
6473f5d
delete documents with messages
apCognixCh Jun 19, 2024
d1fa034
updated semantic proto
gsantopaolo Jun 19, 2024
39c6343
minor fixes
gsantopaolo Jun 19, 2024
a3ced4a
Merge pull request #238 from gen-mind/feature/onedrive-2
apCognixCh Jun 19, 2024
613d586
Merge pull request #239 from gen-mind/develop
gsantopaolo Jun 19, 2024
eafaaed
update doc
apCognixCh Jun 19, 2024
d3fdf29
Merge pull request #240 from gen-mind/patch/docs
gsantopaolo Jun 19, 2024
7b0675e
Merge pull request #241 from gen-mind/main
apaladiychuk Jun 20, 2024
462f569
Merge branch 'refs/heads/develop' into feature/ms-teams
apCognixCh Jun 20, 2024
e9f0e85
change filename for messages file
apCognixCh Jun 20, 2024
115ceb3
some changes
gsantopaolo Jun 20, 2024
13241e4
Merge pull request #237 from gen-mind/feature/ms-teams
apaladiychuk Jun 20, 2024
40b2b14
Merge pull request #242 from gen-mind/develop
apaladiychuk Jun 20, 2024
7fa9dac
changes to migration git action
gsantopaolo Jun 20, 2024
2720459
Merge pull request #243 from gen-mind/docs/teams-integration
apaladiychuk Jun 20, 2024
9206bdf
update migration deployment script
apCognixCh Jun 20, 2024
b26848a
Merge pull request #244 from gen-mind/patch/devops-script
apaladiychuk Jun 20, 2024
6e2410a
remove incremental messages request
apCognixCh Jun 20, 2024
8b68d1b
Merge pull request #245 from gen-mind/path/microsoft-teams
apaladiychuk Jun 20, 2024
1f7dca0
add logs
apCognixCh Jun 20, 2024
8f4fd70
add logs
apCognixCh Jun 20, 2024
e2c9f4d
Merge pull request #246 from gen-mind/path/microsoft-teams
apaladiychuk Jun 20, 2024
30b9917
work on docs
gsantopaolo Jun 20, 2024
47609cb
Merge pull request #247 from gen-mind/docs/teams-integration
gsantopaolo Jun 20, 2024
3ed1df3
quick fix for semantic
gsantopaolo Jun 20, 2024
9bfe344
Merge pull request #248 from gen-mind/feature/onedrive-2
gsantopaolo Jun 20, 2024
5f97015
Merge pull request #249 from gen-mind/develop
gsantopaolo Jun 20, 2024
59789e7
fix for semantic
gsantopaolo Jun 20, 2024
aff9d49
Merge pull request #250 from gen-mind/feature/onedrive-2
gsantopaolo Jun 20, 2024
6e41dc1
Merge pull request #251 from gen-mind/develop
gsantopaolo Jun 20, 2024
7c93f07
fix
gsantopaolo Jun 20, 2024
efc25c1
Merge pull request #252 from gen-mind/feature/onedrive-2
gsantopaolo Jun 20, 2024
ba65228
Merge pull request #253 from gen-mind/develop
gsantopaolo Jun 20, 2024
80c0d67
Merge pull request #254 from gen-mind/main
apaladiychuk Jun 21, 2024
e49e460
adjust ms teams connector
apCognixCh Jun 21, 2024
2fe4882
update docs
apCognixCh Jun 21, 2024
c2a5467
Merge pull request #256 from gen-mind/patch/adjust-teams
apaladiychuk Jun 21, 2024
b116f5a
add channel name condition
apCognixCh Jun 21, 2024
0b35510
Merge pull request #257 from gen-mind/patch/adjust-teams
apaladiychuk Jun 21, 2024
0829788
added NATS_CLIENT_WHISPER params
gsantopaolo Jun 21, 2024
6ced2ed
update
gsantopaolo Jun 21, 2024
2b2a963
Merge pull request #261 from gen-mind/feature/media-1
gsantopaolo Jun 21, 2024
faa9497
Merge pull request #263 from gen-mind/main
apaladiychuk Jun 21, 2024
ede77dd
added whiper_data.proto
gsantopaolo Jun 21, 2024
9cb7bd8
Merge pull request #264 from gen-mind/feature/onedrive-2
gsantopaolo Jun 21, 2024
a6451d8
Merge remote-tracking branch 'origin/develop' into feature/onedrive-2
gsantopaolo Jun 21, 2024
1380458
fix to proto
gsantopaolo Jun 21, 2024
d823e4b
Merge branch 'develop' into feature/onedrive-2
gsantopaolo Jun 21, 2024
2309dee
Merge pull request #265 from gen-mind/feature/onedrive-2
gsantopaolo Jun 21, 2024
e14604b
Merge remote-tracking branch 'origin/develop' into feature/onedrive-2
gsantopaolo Jun 21, 2024
0935bc4
fix to proto
gsantopaolo Jun 21, 2024
bdad6ae
Merge remote-tracking branch 'origin/develop' into feature/onedrive-2
gsantopaolo Jun 21, 2024
338c8ec
Merge pull request #267 from gen-mind/feature/onedrive-2
gsantopaolo Jun 21, 2024
43b6d58
add new whisper channel
apCognixCh Jun 21, 2024
414f766
fixes
gsantopaolo Jun 21, 2024
ed4947c
store
gsantopaolo Jun 21, 2024
14b6652
saving in cockroach by batch
gsantopaolo Jun 24, 2024
8ac6afd
change md format of messages
apCognixCh Jun 24, 2024
97328da
added device checker
gsantopaolo Jun 24, 2024
3467313
work on semantic
gsantopaolo Jun 25, 2024
c1e2552
scrap chats
apCognixCh Jun 25, 2024
69a72bd
add original url to chat response .
apCognixCh Jun 25, 2024
6cdbb74
add original url to chat response .
apCognixCh Jun 25, 2024
3c08fa1
add original url to chat response .
apCognixCh Jun 25, 2024
d87fe02
patch milvus connection
apCognixCh Jun 25, 2024
e7f14d9
Merge pull request #274 from gen-mind/patch/milvus-connect
apaladiychuk Jun 25, 2024
65c5f32
patch milvus connection
apCognixCh Jun 25, 2024
cca1b77
Merge pull request #275 from gen-mind/patch/milvus-connect
apaladiychuk Jun 25, 2024
669a67f
Merge pull request #276 from gen-mind/main
apaladiychuk Jun 25, 2024
3958a91
debug loading chats
apCognixCh Jun 25, 2024
bb48054
Merge branch 'refs/heads/develop' into feature/whisper_connector
apCognixCh Jun 25, 2024
9d4dffc
add milvus username and password to config
apCognixCh Jun 25, 2024
2f5034c
Merge pull request #277 from gen-mind/feature/whisper_connector
apaladiychuk Jun 25, 2024
42e8392
download attachments from private group chats
apCognixCh Jun 25, 2024
8c1a126
download attachments from private group chats
apCognixCh Jun 25, 2024
cfd7fda
Merge pull request #280 from gen-mind/feature/whisper_connector
apaladiychuk Jun 25, 2024
f43d2d1
update database schema
apCognixCh Jun 25, 2024
27837d1
Merge pull request #281 from gen-mind/feature/whisper_connector
apaladiychuk Jun 25, 2024
84db3a3
refactored semantic
gsantopaolo Jun 25, 2024
98aa4fb
Merge pull request #283 from gen-mind/feature/onedrive-4
gsantopaolo Jun 25, 2024
a7276a0
fix proto reference
gsantopaolo Jun 26, 2024
0d9273a
Merge pull request #284 from gen-mind/feature/onedrive-4
gsantopaolo Jun 26, 2024
f0f8b37
add status monitoring for nats and milvus
apCognixCh Jun 26, 2024
0aefb2a
Merge branch 'refs/heads/develop' into feature/whisper_connector
apCognixCh Jun 26, 2024
9eb199d
update proto
apCognixCh Jun 26, 2024
ccefbae
fix for proto
gsantopaolo Jun 26, 2024
f0a48b0
Merge pull request #285 from gen-mind/feature/onedrive-4
gsantopaolo Jun 26, 2024
02d0174
Merge branch 'refs/heads/develop' into feature/whisper_connector
apCognixCh Jun 26, 2024
41ce15d
update docs
apCognixCh Jun 26, 2024
9274440
Merge pull request #286 from gen-mind/update_doc
apaladiychuk Jun 26, 2024
31afffe
fix for grpc
gsantopaolo Jun 26, 2024
93ba83a
Merge pull request #287 from gen-mind/feature/onedrive-4
gsantopaolo Jun 26, 2024
7b0a1b2
Merge branch 'refs/heads/develop' into feature/whisper_connector
apCognixCh Jun 26, 2024
f16c4d7
Merge pull request #288 from gen-mind/feature/whisper_connector
apaladiychuk Jun 26, 2024
6677b28
fix for md files
gsantopaolo Jun 26, 2024
3ddd2f7
Merge pull request #289 from gen-mind/feature/onedrive-4
gsantopaolo Jun 26, 2024
9b108a4
update msteams parameter
apCognixCh Jun 26, 2024
829acb4
Merge pull request #290 from gen-mind/update_doc
apaladiychuk Jun 26, 2024
0f93e0a
implement pagination for chat loading
apCognixCh Jun 26, 2024
6dd7048
Merge pull request #292 from gen-mind/update_doc
apaladiychuk Jun 26, 2024
cf7f953
implement pagination for chat loading
apCognixCh Jun 26, 2024
af2c943
implement pagination for chat loading
apCognixCh Jun 26, 2024
aa52db1
Merge pull request #293 from gen-mind/update_doc
apaladiychuk Jun 26, 2024
7aa4419
Merge pull request #294 from gen-mind/develop
apaladiychuk Jun 26, 2024
95a4638
fix for build
gsantopaolo Jun 26, 2024
51f04a7
Merge pull request #295 from gen-mind/feature/onedrive-5
gsantopaolo Jun 26, 2024
36e0757
Merge pull request #296 from gen-mind/develop
gsantopaolo Jun 26, 2024
4e8969e
Update migration-service-build.yml
noelhermans Jun 26, 2024
1ed013a
Merge pull request #297 from gen-mind/fix-login-v1
noelhermans Jun 26, 2024
655b4e3
Merge pull request #298 from gen-mind/develop
noelhermans Jun 26, 2024
5d71c64
Update migration-service-build.yml
noelhermans Jun 26, 2024
9fc5786
Merge pull request #299 from gen-mind/fix-login-v1
noelhermans Jun 26, 2024
736e02e
Merge pull request #300 from gen-mind/develop
noelhermans Jun 26, 2024
ff6ebde
remove debug logs
apCognixCh Jun 26, 2024
b9a93ac
Merge pull request #301 from gen-mind/patch/unsupportder-file-types
apaladiychuk Jun 26, 2024
19a2212
Merge pull request #303 from gen-mind/main
apaladiychuk Jun 27, 2024
a73d26d
adjust documents list in chat
apCognixCh Jun 27, 2024
dcd95b5
adjust documents list in chat
apCognixCh Jun 27, 2024
ba65eeb
Merge pull request #304 from gen-mind/patch/unsupportder-file-types
apaladiychuk Jun 27, 2024
2cf0a4c
Merge pull request #305 from gen-mind/develop
apaladiychuk Jun 27, 2024
a2fc1f4
adjust documents list in chat
apCognixCh Jun 27, 2024
07ab1d9
adjust documents list in chat
apCognixCh Jun 27, 2024
a34e2dc
Merge pull request #306 from gen-mind/patch/unsupportder-file-types
apaladiychuk Jun 27, 2024
def6a8d
Merge pull request #307 from gen-mind/develop
apaladiychuk Jun 27, 2024
9ceb263
adjust documents list in chat
apCognixCh Jun 27, 2024
96e5c43
Merge pull request #308 from gen-mind/patch/unsupportder-file-types
apaladiychuk Jun 27, 2024
0cee6b7
pagination in loading messages
apCognixCh Jun 27, 2024
bf4233a
pagination in loading messages
apCognixCh Jun 27, 2024
cd90210
Merge pull request #309 from gen-mind/patch/ms-teams-chats
apaladiychuk Jun 27, 2024
5804b24
Merge pull request #310 from gen-mind/main
apaladiychuk Jun 27, 2024
2103367
Changed CockroachDB to YugabyteDB to use only open source
FranckPachot Jul 1, 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
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
76 changes: 76 additions & 0 deletions .github/workflows/api-service-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Build api service

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# on:
# push:
# tags:
# - '*'
on:
push:
branches:
- main
paths:
- 'src/backend/api/**'
- 'src/backend/core/**'
- 'src/backend/go.mod'
- '.github/workflows/api-service-build.yml'
env:
RGNAME: AKS_RG
ACRNAME: cognixacr
AKSNAME: Cognix_AKS
GITHUB_SHA: ${{ github.sha }}

jobs:
build-and-push:
runs-on: ubuntu-latest

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

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

- name: Login to ACR
uses: docker/login-action@v3
with:
registry: ${{ env.ACRNAME }}.azurecr.io
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}

- name: API Service Image Docker Build and Push
uses: docker/build-push-action@v2
with:
context: ./src/backend
file: ./src/backend/Dockerfile
platforms: linux/amd64
push: true
tags: |
${{ env.ACRNAME }}.azurecr.io/cognix/apiservice:${{env.GITHUB_SHA}}
build-args: |
COGNIX_VERSION=${{env.GITHUB_SHA}}
service=api

- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Get AKS kubeconfig
run: az aks get-credentials --resource-group $RGNAME --name $AKSNAME

- name: Update API server manifest
run:
sed -ie "s/apiservice:main/apiservice:${{env.GITHUB_SHA}}/g" ./src/backend/api/api-service-deployment.yaml

- name: Deploy API server manifests
run: |
kubectl apply -f ./src/backend/api/api-service-deployment.yaml

- name: Delete API server pod
run: |
kubectl rollout restart deploy/apiservice
76 changes: 76 additions & 0 deletions .github/workflows/connector-service-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Build connector service

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# on:
# push:
# tags:
# - '*'
on:
push:
branches:
- main
paths:
- 'src/backend/connector/**'
- 'src/backend/core/**'
- 'src/backend/go.mod'
- '.github/workflows/connector-service-build.yml'
env:
RGNAME: AKS_RG
ACRNAME: cognixacr
AKSNAME: Cognix_AKS
GITHUB_SHA: ${{ github.sha }}

jobs:
build-and-push:
runs-on: ubuntu-latest

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

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

- name: Login to ACR
uses: docker/login-action@v3
with:
registry: ${{ env.ACRNAME }}.azurecr.io
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}

- name: Connector Service Image Docker Build and Push
uses: docker/build-push-action@v2
with:
context: ./src/backend
file: ./src/backend/Dockerfile
platforms: linux/amd64
push: true
tags: |
${{ env.ACRNAME }}.azurecr.io/cognix/connectorservice:${{env.GITHUB_SHA}}
build-args: |
COGNIX_VERSION=${{env.GITHUB_SHA}}
service=connector

- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Get AKS kubeconfig
run: az aks get-credentials --resource-group $RGNAME --name $AKSNAME

- name: Update Connector server manifest
run:
sed -ie "s/connectorservice:main/connectorservice:${{env.GITHUB_SHA}}/g" ./src/backend/connector/service-deployment.yaml

- name: Deploy Connector server manifests
run: |
kubectl apply -f ./src/backend/connector/service-deployment.yaml

- name: Delete Connector server pod
run: |
kubectl rollout restart deploy/connectorservice
78 changes: 78 additions & 0 deletions .github/workflows/embedder-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Build embedder service

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# on:
# push:
# tags:
# - '*'
on:
push:
branches:
- main
paths:
- 'src/backend/embedder/**'
- '.github/workflows/embedder-build.yml'

env:
# Use docker.io for Docker Hub if empty
#REGISTRY: ghcr.io
# github.repository as <account>/<repo>
#IMAGE_NAME: ${{ github.repository }}
RGNAME: AKS_RG
ACRNAME: cognixacr
AKSNAME: Cognix_AKS
GITHUB_SHA: ${{ github.sha }}

jobs:
build-and-push:
runs-on: ubuntu-latest

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

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

- name: Login to ACR
uses: docker/login-action@v3
with:
registry: ${{ env.ACRNAME }}.azurecr.io
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}

- name: Embedder Service Image Docker Build and Push
uses: docker/build-push-action@v2
with:
context: ./src/backend/embedder
file: ./src/backend/embedder/Dockerfile_cpu
platforms: linux/amd64
push: true
tags: |
${{ env.ACRNAME }}.azurecr.io/cognix/embedder:${{env.GITHUB_SHA}}
build-args: |
COGNIX_VERSION=${{env.GITHUB_SHA}}

- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Get AKS kubeconfig
run: az aks get-credentials --resource-group $RGNAME --name $AKSNAME

- name: Update Embedder server manifest
run:
sed -ie "s/embedder:main/embedder:${{env.GITHUB_SHA}}/g" ./src/backend/embedder/embedder-deployment.yaml

- name: Deploy Embedder server manifests
run: |
kubectl apply -f ./src/backend/embedder/embedder-deployment.yaml

- name: Delete Embedder server pod
run: |
kubectl rollout restart deploy/embedder
74 changes: 74 additions & 0 deletions .github/workflows/migration-service-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Build migration service

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# on:
# push:
# tags:
# - '*'
on:
push:
branches:
- main
paths:
- 'src/backend/migration/**'
- '.github/workflows/migration-service-build.yml'
env:
RGNAME: AKS_RG
ACRNAME: cognixacr
AKSNAME: Cognix_AKS
GITHUB_SHA: ${{ github.sha }}

jobs:
build-and-push:
runs-on: ubuntu-latest

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

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

- name: Login to ACR
uses: docker/login-action@v3
with:
registry: ${{ env.ACRNAME }}.azurecr.io
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}

- name: Migration Service Image Docker Build and Push
uses: docker/build-push-action@v2
with:
context: ./src/backend/migration
file: ./src/backend/migration/Dockerfile
platforms: linux/amd64
push: true
tags: |
${{ env.ACRNAME }}.azurecr.io/cognix/migrationservice:${{env.GITHUB_SHA}}

build-args: |
COGNIX_VERSION=${{env.GITHUB_SHA}}

- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Get AKS kubeconfig
run: az aks get-credentials --resource-group $RGNAME --name $AKSNAME

- name: Update migration server manifest
run:
sed -ie "s/migrationservice:main/migrationservice:${{env.GITHUB_SHA}}/g" ./src/backend/migration/migration-service-deployment.yaml

- name: Deploy migration server manifests
run: |
kubectl apply -f ./src/backend/migration/migration-service-deployment.yaml

- name: Delete migration server pod
run: |
kubectl rollout restart deploy/migrationservice
71 changes: 71 additions & 0 deletions .github/workflows/orchestrator-service-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Build orchestrator service

# on:
# push:
# tags:
# - '*'
on:
push:
branches:
- main
paths:
- 'src/backend/orchestrator/**'
- 'src/backend/core/**'
- 'src/backend/go.mod'
- '.github/workflows/orchestrator-service-build.yml'
env:
RGNAME: AKS_RG
ACRNAME: cognixacr
AKSNAME: Cognix_AKS
GITHUB_SHA: ${{ github.sha }}

jobs:
build-and-push:
runs-on: ubuntu-latest

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

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

- name: Login to ACR
uses: docker/login-action@v3
with:
registry: ${{ env.ACRNAME }}.azurecr.io
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}

- name: Orchestrator Service Image Docker Build and Push
uses: docker/build-push-action@v2
with:
context: ./src/backend
file: ./src/backend/Dockerfile
platforms: linux/amd64
push: true
tags: |
${{ env.ACRNAME }}.azurecr.io/cognix/orchestratorservice:${{env.GITHUB_SHA}}
build-args: |
COGNIX_VERSION=${{env.GITHUB_SHA}}
service=orchestrator

- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Get AKS kubeconfig
run: az aks get-credentials --resource-group $RGNAME --name $AKSNAME

- name: Update Orchestrator server manifest
run:
sed -ie "s/orchestratorservice:main/orchestratorservice:${{env.GITHUB_SHA}}/g" ./src/backend/orchestrator/service-deployment.yaml

- name: Deploy Orchestrator server manifests
run: |
kubectl apply -f ./src/backend/orchestrator/service-deployment.yaml

- name: Delete Orchestrator server pod
run: |
kubectl rollout restart deploy/orchestratorservice
Loading