Skip to content

Commit a0b496a

Browse files
committed
Test feeding
1 parent f6768f6 commit a0b496a

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/feed-code.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Vespa Sampleapps Search Feed
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
branches:
8+
- glebashnik/sample-apps-code-search
9+
10+
env:
11+
DATA_PLANE_PUBLIC_KEY : ${{ secrets.VESPA_TEAM_DATA_PLANE_PUBLIC_CERT }}
12+
DATA_PLANE_PRIVATE_KEY : ${{ secrets.VESPA_TEAM_DATA_PLANE_PRIVATE_KEY }}
13+
VESPA_CLI_DATA_PLANE_CERT : ${{ secrets.VESPA_TEAM_VESPA_CLI_DATA_PLANE_CERT }}
14+
VESPA_CLI_DATA_PLANE_KEY : ${{ secrets.VESPA_TEAM_VESPA_CLI_DATA_PLANE_KEY }}
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: '3.x'
28+
29+
- name: Install dependencies
30+
run: |
31+
pip3 install PyYAML mmh3 requests html5lib beautifulsoup4 markdownify tiktoken
32+
33+
- name: Get Vespa CLI - update to later versions as needed
34+
run: |
35+
apt update && apt -y install curl
36+
curl -SsLo vespa-cli.tar.gz https://github.com/vespa-engine/vespa/releases/download/v8.209.11/vespa-cli_8.209.11_linux_amd64.tar.gz
37+
tar -xvf vespa-cli.tar.gz && ln -fs vespa-cli_8.209.11_linux_amd64/bin/vespa
38+
39+
- name: Feed code snippets
40+
run: |
41+
export VESPA_CLI_DATA_PLANE_CERT
42+
export VESPA_CLI_DATA_PLANE_KEY
43+
export VESPA_CLI_API_KEY=
44+
./feed_to_vespa.py _code_snippets_config.yml

0 commit comments

Comments
 (0)