Skip to content

Commit

Permalink
Updating ci/cd pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaland committed Oct 18, 2024
1 parent e78fa96 commit 499ce5a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ jobs:
curl -L https://huggingface.co/nomic-ai/nomic-embed-text-v1/resolve/main/onnx/model_quantized.onnx?download=true --output src/main/resources/embeddings/nomic/model.onnx
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: 'Tar files'
run: tar -cvf target.tar target
- name: Archive node modules
uses: actions/upload-artifact@v4
with:
name: target
path: target.tar
include-hidden-files: true
retention-days: 1

build-image:
needs: build-jar
runs-on: ubuntu-latest
Expand All @@ -43,6 +53,15 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Download node modules
uses: actions/download-artifact@v4
with:
name: target
path: .

- name: 'Untar files'
run: tar -xvf target.tar -C target

- name: Login to Docker Registry
uses: docker/login-action@v1
Expand Down

0 comments on commit 499ce5a

Please sign in to comment.