Skip to content

Commit

Permalink
Merge pull request #226 from semantic-systems/develop
Browse files Browse the repository at this point in the history
updated workflow for repository secret
  • Loading branch information
abdullah-rana authored Jul 8, 2024
2 parents f8d18d7 + 6f1f2e7 commit 31a3667
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
jobs:
deploy:
runs-on: self-hosted
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- name: 'Check out repo'
uses: actions/checkout@v3
Expand All @@ -18,8 +20,6 @@ jobs:
- name: 'Delete old Docker image'
run: docker image rm nfdi-search-engine-search-engine
- name: 'Copy logging.conf'
run: cp logging.conf.example logging.conf
- name: 'Set environment variables'
run: OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
run: cp logging.conf.example logging.conf
- name: 'Re-build Docker container from current source'
run: docker compose up --force-recreate --build --detach
2 changes: 0 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
env_config = dict(
{
"OPENAI_API_KEY": os.environ.get("OPENAI_API_KEY", ""),
"OPENAI_MODEL_VERSION": os.environ.get("OPENAI_MODEL_VERSION", ""),
"OPENAI_TEMPERATURE": os.environ.get("OPENAI_TEMPERATURE",""),
}
)

Expand Down

0 comments on commit 31a3667

Please sign in to comment.