Merge pull request #52 from Hestia-Homes/master

move dvc pull to github actions
This commit is contained in:
KhalimCK 2023-10-03 16:32:21 +01:00 committed by GitHub
commit 03dc72799a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View file

@ -22,6 +22,10 @@ jobs:
npm install -g serverless
npm install -g serverless-domain-manager
- name: Install DVC
run: |
pip install dvc
# Set up all of the secrets required for the deployment
- name: set secret prefix which is used across multiple steps
id: secret_prefix
@ -79,6 +83,11 @@ jobs:
aws-secret-access-key: ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-2
- name: DVC Pull
run: |
cd modules/ml-pipeline/src/pipeline
dvc pull -r ${{ steps.set_runtime_environment.outputs.runtime_environment }}
- name: Setup Docker
uses: docker/setup-buildx-action@v1

View file

@ -19,7 +19,6 @@ RUN pip install --no-cache-dir -r ./requirements.txt
COPY modules/ml-pipeline/src/pipeline ./pipeline
# Copy the handler
COPY deployment/handlers/prediction_app.py prediction_app.py
# Get the model
# RUN dvc pull -r ${RUNTIME_ENVIRONMENT}
CMD [ "prediction_app.handler" ]