-
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.
- Loading branch information
1 parent
cf02cb1
commit 5812b33
Showing
35 changed files
with
122 additions
and
613 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
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 |
---|---|---|
|
@@ -54,12 +54,60 @@ jobs: | |
secrets: | ||
inherit | ||
|
||
deploy-nucliadb-shared: | ||
name: Deploy nucliadb shared | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate a token | ||
id: app-token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ secrets.GHAPP_ID_NUCLIABOT }} | ||
private-key: ${{ secrets.PK_GHAPP_NUCLIABOT }} | ||
owner: nuclia | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set helm package image | ||
id: version_step | ||
run: |- | ||
VERSION=`cat VERSION` | ||
VERSION_SHA=$VERSION-$(echo $GITHUB_SHA | cut -c1-6) | ||
sed -i.bak "s#99999.99999.99999#$VERSION_SHA#" ./charts/nucliadb_shared/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_shared | ||
helm package charts/nucliadb_shared | ||
curl --data-binary "@nucliadb_shared-${{ steps.version_step.outputs.version_number }}.tgz" ${{ secrets.HELM_CHART_URL }}/api/charts | ||
- name: Repository Dispatch | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ steps.app-token.outputs.token }} | ||
repository: nuclia/nucliadb_deploy | ||
event-type: promote | ||
client-payload: '{"component": "nucliadb_shared", "chart-version": "${{ steps.version_step.outputs.version_number }}" }' | ||
|
||
deploy-nucliadb-node: | ||
name: Deploy Node | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build-python-images | ||
- build-node-image | ||
- deploy-nucliadb-shared | ||
steps: | ||
- name: Generate a token | ||
id: app-token | ||
|
@@ -118,6 +166,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: | ||
- build-python-images | ||
- deploy-nucliadb-shared | ||
strategy: | ||
# nucliadb_deploy pipeline has issues with too many parallel invocations | ||
max-parallel: 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.