Skip to content

Commit f47a36b

Browse files
Revert "ci: improve search indexing"
1 parent c84c5f1 commit f47a36b

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

.github/workflows/index.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Search Index
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
indexing:
10+
runs-on: ubuntu-latest
11+
name: Indexing
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
repository: 'meilisearch/scrapix'
16+
- name: Use Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '20.x'
20+
- run: yarn
21+
- run: yarn start -c "$SCRAPIX_CONFIG"
22+
env:
23+
SCRAPIX_CONFIG: ${{ secrets.SCRAPIX_CONFIG }}

.github/workflows/production.yml

-8
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,3 @@ jobs:
7878
echo ${{ secrets.GH_REGISTRY_TOKEN }} | docker login ghcr.io --username ${{ env.REGISTRY_USERNAME }} --password-stdin
7979
docker-compose -f ${{ env.STACK_FILE }} config
8080
env $(cat .env | xargs) docker stack deploy --prune --resolve-image always --with-registry-auth -c ${{ env.STACK_FILE }} ${{ env.REPOSITORY }}
81-
82-
indexing:
83-
needs: deploy
84-
runs-on: ubuntu-latest
85-
steps:
86-
- uses: actions/checkout@v4
87-
- name: Run Scrapix
88-
run: docker run --rm --env CRAWLER_CONFIG=${{ secrets.SCRAPIX_CONFIG }} getmeili/scrapix:v0.1.8

0 commit comments

Comments
 (0)