Skip to content

Processing v2 integration (#1719) #786

Processing v2 integration (#1719)

Processing v2 integration (#1719) #786

name: nucliadb Shared (helm)
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
HASH: $(git rev-parse --short "$GITHUB_SHA")
BRANCH: ${GITHUB_REF##*/}
jobs:
build:
name: push shared config
runs-on: ubuntu-latest
steps:
# Setup gcloud CLI
- 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: ${{ secrets.GH_CICD_PUBLIC }}
repository: nuclia/nucliadb_deploy
event-type: promote
client-payload: '{"component": "nucliadb_shared", "chart-version": "${{ steps.version_step.outputs.version_number }}" }'