-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into remove-datasets-from-datasets
- Loading branch information
Showing
20 changed files
with
340 additions
and
190 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: PyPI Releases | ||
name: PyPI and Helm Releases | ||
|
||
on: | ||
push: | ||
|
@@ -155,4 +155,54 @@ jobs: | |
nuclia/nucliadb:${{ steps.version_step.outputs.version_number }} | ||
nuclia/nucliadb:${{ steps.version_step.outputs.hash }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=min | ||
cache-to: type=gha,mode=min | ||
|
||
deploy: | ||
name: Deploy Helm chart and trigger internal CI | ||
runs-on: ubuntu-latest | ||
needs: push-docker | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Calculate short sha | ||
id: env-vars | ||
run: |- | ||
HASH=`git rev-parse --short HEAD` | ||
echo "short_sha=$HASH" >> $GITHUB_OUTPUT | ||
- name: Set helm package image | ||
id: version_step | ||
run: |- | ||
sed -i.bak "s#IMAGE_TO_REPLACE#$IMAGE_NAME:${{ steps.env-vars.outputs.short_sha }}#" ./charts/nucliadb_writer/values.yaml | ||
sed -i.bak "s#CONTAINER_REGISTRY_TO_REPLACE#$CONTAINER_REGISTRY#" ./charts/nucliadb_writer/values.yaml | ||
VERSION=`cat VERSION` | ||
VERSION_SHA=$VERSION+${{ steps.env-vars.outputs.short_sha }} | ||
sed -i.bak "s#99999.99999.99999#$VERSION_SHA#" ./charts/nucliadb_writer/Chart.yaml | ||
echo "version_number=$VERSION_SHA" >> $GITHUB_OUTPUT | ||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Install Helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.4.0 | ||
|
||
- name: Push helm package | ||
run: |- | ||
helm lint charts/nucliadb | ||
helm package charts/nucliadb | ||
curl --data-binary "@nucliadb-${{ steps.version_step.outputs.version_number }}.tgz" ${{ secrets.HELM_CHART_URL }}/api/charts | ||
# Not working yet, disabled for now | ||
# - name: Repository Dispatch | ||
# uses: peter-evans/repository-dispatch@v2 | ||
# with: | ||
# token: ${{ secrets.GH_CICD_PUBLIC }} | ||
# repository: nuclia/nucliadb_deploy | ||
# event-type: promote | ||
# client-payload: '{"component": "nucliadb_standalone", "chart-version": "${{ steps.version_step.outputs.version_number }}" }' |
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 |
---|---|---|
@@ -1 +1 @@ | ||
2.40.1 | ||
2.41.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ image: nuclia/nucliadb | |
imageVersion: | ||
|
||
replicas: 2 | ||
podAnnotations: {} | ||
|
||
# app settings | ||
env: | ||
|
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 |
---|---|---|
|
@@ -190,7 +190,7 @@ def _test_predict_proxy_chat(kbid: str): | |
json={ | ||
"question": "Who is the best football player?", | ||
"query_context": [ | ||
"Many football players have existed. Cristiano Ronaldo and Messi among them, but Messi is by far the greatest." | ||
"Many football players have existed. Messi is by far the greatest." | ||
], | ||
"user_id": "[email protected]", | ||
}, | ||
|
@@ -252,4 +252,4 @@ def raise_for_status(resp): | |
print("Error response") | ||
print("Status code:", resp.status_code) | ||
print(resp.text) | ||
raise | ||
raise |
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
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
364 changes: 182 additions & 182 deletions
364
nucliadb_protos/python/nucliadb_protos/resources_pb2.py
Large diffs are not rendered by default.
Oops, something went wrong.
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