Skip to content

Commit

Permalink
add access key id and secret access key into the ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellinus-witarsah committed Aug 1, 2024
1 parent dcd6363 commit aff4843
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,18 @@ jobs:
run: make format
- name: Linting
run: make lint
- name: Running Data Preprocessing and Model Training Pipelines
- name: Configuring Remote DVC Storage
env:
ACCESS_KEY_ID: ${{ secrets.DVC_REMOTE_S3_ACCESS_KEY_ID }}
SECRET_ACCESS_KEY: ${{ secrets.DVC_REMOTE_S3_SECRET_ACCESS_KEY }}
run: |
dvc remote add origin s3://dvc
dvc remote modify origin endpointurl https://dagshub.com/marcellinus-witarsah/credit-score-mlops.s3
dvc remote modify origin --local access_key_id $ACCESS_KEY_ID
dvc remote modify origin --local secret_access_key $SECRET_ACCESS_KEY
- name: Pulling Data from Remote S3 Remote Storage via DVC
run: |
dvc pull
- name: Cleaning Complied Python Files
run: make clean
run: make clean

0 comments on commit aff4843

Please sign in to comment.