Skip to content

Commit

Permalink
chore: Add secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
lis-r-barreto committed Jun 23, 2024
1 parent 744df37 commit 532ac10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ jobs:
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Set up MLflow environment variables
run: |
echo "Setting up MLflow environment variables"
export MLFLOW_TRACKING_USERNAME=${{ secrets.MLFLOW_TRACKING_USERNAME }}
export MLFLOW_TRACKING_PASSWORD=${{ secrets.MLFLOW_TRACKING_PASSWORD }}
- name: Train Model
run: |
python app/train.py
6 changes: 4 additions & 2 deletions app/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ def config_mlflow():
Returns:
None
"""
mlflow_username = os.getenv("MLFLOW_TRACKING_USERNAME")
mlflow_password = os.getenv("MLFLOW_TRACKING_PASSWORD")
# mlflow_username = os.getenv("MLFLOW_TRACKING_USERNAME")
mlflow_username = "lis-r-barreto"
# mlflow_password = os.getenv("MLFLOW_TRACKING_PASSWORD")
mlflow_password = "4e756087b8703385f28b2787fca9832416cc0c83"
if not mlflow_username or not mlflow_password:
raise ValueError(
"MLFLOW_TRACKING_USERNAME and MLFLOW_TRACKING_PASSWORD environment variables must be set"
Expand Down

0 comments on commit 532ac10

Please sign in to comment.