File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ jobs:
102102 JINA_API_URL=http://jina-reranker:8000/librechat/v1/rerank
103103 JINA_RERANKER_PORT=8787
104104 JINA_RERANKER_MODEL_NAME=jinaai/jina-reranker-v1-tiny-en
105- JINA_RERANKER_IMAGE=ghcr.io/${{ github.repository_owner }}/ librechat-jina-reranker:da638699-tiny-en
105+ JINA_RERANKER_IMAGE=librechat-jina-reranker:da638699-tiny-en
106106 JINA_RERANKER_MAX_BATCH_SIZE=2
107107 JINA_RERANKER_OMP_NUM_THREADS=1
108108
@@ -121,12 +121,24 @@ jobs:
121121 username : ${{ github.actor }}
122122 password : ${{ secrets.GITHUB_TOKEN }}
123123
124+ - name : Cache Pull Jina Reranker
125+ continue-on-error : true
126+ run : |
127+ CACHE="ghcr.io/${{ github.repository_owner }}/librechat-jina-reranker:da638699-tiny-en"
128+ if docker pull "${CACHE}"; then
129+ docker tag "${CACHE}" "librechat-jina-reranker:da638699-tiny-en"
130+ fi
131+
124132 - name : Run Stack Smoke
125133 shell : bash
126134 run : |
127135 chmod +x scripts/ci/smoke.sh
128136 ./scripts/ci/smoke.sh
129137
130- - name : Push Jina Image to GHCR
138+ - name : Cache Push Jina Reranker
131139 if : always()
132- run : docker push "ghcr.io/${{ github.repository_owner }}/librechat-jina-reranker:da638699-tiny-en" 2>/dev/null || true
140+ continue-on-error : true
141+ run : |
142+ CACHE="ghcr.io/${{ github.repository_owner }}/librechat-jina-reranker:da638699-tiny-en"
143+ docker tag "librechat-jina-reranker:da638699-tiny-en" "${CACHE}"
144+ docker push "${CACHE}"
Original file line number Diff line number Diff line change @@ -53,10 +53,6 @@ compose \
5353 config -q
5454
5555log " Preparing local Jina reranker image"
56- # Export the image name from .env so the build script tags with the same
57- # (possibly GHCR-prefixed) name that compose will reference.
58- export JINA_RERANKER_IMAGE
59- JINA_RERANKER_IMAGE=" $( grep ' ^[[:space:]]*JINA_RERANKER_IMAGE=' .env | tail -1 | cut -d= -f2-) "
6056./scripts/prepare_jina_reranker_image.sh
6157
6258log " Starting hardened stack with code interpreter and local search overlays"
You can’t perform that action at this time.
0 commit comments