Skip to content

Revert "Update [vald sha: 90cc1f54a8bc65fce0f97028b966fa6b5c72a78f]" … #161

Revert "Update [vald sha: 90cc1f54a8bc65fce0f97028b966fa6b5c72a78f]" …

Revert "Update [vald sha: 90cc1f54a8bc65fce0f97028b966fa6b5c72a78f]" … #161

Workflow file for this run

name: release
on:
push:
branches:
- main
tags:
- '*.*.*'
- 'v*.*.*'
- '*.*.*-*'
- 'v*.*.*-*'
pull_request:
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: rinx/[email protected]
with:
version: latest
name: vald
agents: 1
- name: check k3d
run: |
kubectl cluster-info
- uses: azure/setup-helm@v3
- name: Helm version
run: |
helm version
- name: deploy Vald
run: |
helm repo add vald https://vald.vdaas.org/charts
helm install \
--values ${VALUES} \
--set defaults.image.tag=nightly \
--set agent.ngt.dimension=300 \
--set agent.ngt.auto_index_length=2 \
--set agent.minReplicas=1 \
--set gateway.lb.enabled=false \
--set discoverer.enabled=false \
--set manager.index.enabled=false \
--generate-name vald/vald
sleep 3
kubectl wait --for=condition=ready pod -l app=vald-agent --timeout=3m
kubectl get pods
env:
VALUES: https://raw.githubusercontent.com/vdaas/vald/main/.github/helm/values/values-lb.yaml
- name: python dependencies
run: |
pip install --upgrade grpcio-tools protobuf grpcio googleapis-common-protos
## dirty hack:
sudo rm -rf /usr/lib/python3/dist-packages/validate.py
curl -LO https://raw.githubusercontent.com/rinx/word2vecjson/master/data/wordvecs1000.json
- name: run tests
run: |
kubectl port-forward statefulset/vald-agent 8081:8081 &
pid=$!
python src/test.py
kill $pid
release:
if: startsWith( github.ref, 'refs/tags/')
needs:
- e2e
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Create release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
publish:
if: startsWith( github.ref, 'refs/tags/')
needs:
- e2e
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install dependencies
run: |
echo "Install dependencies"
sudo apt-get update
sudo apt-get install -y python3-setuptools
pip3 install grpcio-tools
- name: prepare to publish
run: |
python3 setup.py sdist
python3 setup.py bdist_wheel
- name: publish
uses: pypa/gh-action-pypi-publish@master
with:
user: ${{ secrets.PIP_USERNAME }}
password: ${{ secrets.PIP_PASSWORD }}