From 4308a419d3a42ee081fe69241bf5aa222c5e80cc Mon Sep 17 00:00:00 2001 From: "Michael G. Khmelnitsky" Date: Thu, 7 Dec 2023 18:38:41 -0800 Subject: [PATCH] Prod workflow for running Vectara in a Docker container. --- .github/workflows/prod.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index 9124ccc9..437c1fe1 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -29,3 +29,13 @@ jobs: - name: Build site # `prod` is the name of the output directory run: JEKYLL_ENV=preview LC_ALL=C.UTF-8 bundle exec jekyll build -d prod + # Append API Key to .env file + - name: Append API Key to .env + run: echo "API_KEY=${{ secrets.API_KEY }}" >> .env + # Run the vectara/vectara-answer Docker container + - name: Run Vectara Answer Docker container + run: | + docker run -v $PWD/queries.json:/build/queries.json \ + -v $PWD/.env:/.env \ + vectara/vectara-answer \ + /bin/bash -c "node server/index.js"