Skip to content

[patch] Release v1.5.1 (#158) #24

[patch] Release v1.5.1 (#158)

[patch] Release v1.5.1 (#158) #24

Workflow file for this run

#
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: "Update Helm charts"
on:
push:
tags:
- "*.*.*"
- "v*.*.*"
- "*.*.*-*"
- "v*.*.*-*"
# NOTE For verification purposes
pull_request:
jobs:
dump-contexts-to-log:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/dump-context
detect-ci-container:
uses: ./.github/workflows/_detect-ci-container.yml
# update-helm-chart:
# name: Update Helm chart
# runs-on: ubuntu-latest
# needs: [detect-ci-container]
# container:
# image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG }}
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
# token: ${{ secrets.DISPATCH_TOKEN }}
# - name: Set Git config
# run: |
# git config --global --add safe.directory ${GITHUB_WORKSPACE}
# - uses: crazy-max/ghaction-import-gpg@v6
# with:
# gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
# git_user_signingkey: true
# git_commit_gpgsign: true
# - name: Setup Helm environment
# uses: ./.github/actions/setup-helm
# - name: Packaging
# run: |
# make helm/package/vald
# make helm/package/vald-helm-operator
# make helm/package/vald-benchmark-operator
# make helm/package/vald-readreplica
# - name: Push to gh-pages
# run: |
# git checkout .
# git checkout gh-pages
# mv -f vald-*.tgz charts/
# helm repo index --url https://vald.vdaas.org/charts charts/
#
# git add charts
# git commit -S --signoff -m ":robot: Automatically update Helm charts"
#
# git remote set-url origin "https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
# git push origin gh-pages
# env:
# GITHUB_USER: ${{ secrets.DISPATCH_USER }}
# GITHUB_TOKEN: ${{ secrets.DISPATCH_TOKEN }}
# crud-on-remote-helm-chart:
# name: CRUD test on remote Helm chart
# runs-on: ubuntu-latest
# timeout-minutes: 60
# steps:
# - uses: actions/checkout@v4
# - name: Set Git config
# run: |
# git config --global --add safe.directory ${GITHUB_WORKSPACE}
# - name: Setup E2E environment
# id: setup_e2e
# uses: ./.github/actions/setup-e2e
# - name: Deploy Vald
# id: deploy_vald
# uses: ./.github/actions/e2e-deploy-vald
# with:
# helm_extra_options: ${{ steps.setup_e2e.outputs.HELM_EXTRA_OPTIONS }}
# values: .github/helm/values/values-lb.yaml
# wait_for_selector: app=vald-lb-gateway
# use_local_charts: false
# - name: Run E2E CRUD
# run: |
# make hack/benchmark/assets/dataset/${DATASET}
# make E2E_BIND_PORT=8081 \
# E2E_DATASET_NAME=${DATASET} \
# E2E_INSERT_COUNT=60000 \
# E2E_SEARCH_COUNT=10000 \
# E2E_SEARCH_BY_ID_COUNT=10000 \
# E2E_GET_OBJECT_COUNT=100 \
# E2E_UPDATE_COUNT=100 \
# E2E_UPSERT_COUNT=100 \
# E2E_REMOVE_COUNT=100 \
# E2E_WAIT_FOR_CREATE_INDEX_DURATION=3m \
# E2E_TARGET_POD_NAME=${POD_NAME} \
# E2E_TARGET_NAMESPACE=default \
# e2e
# env:
# DATASET: fashion-mnist-784-euclidean.hdf5
# POD_NAME: ${{ steps.deploy_vald.outputs.POD_NAME }}