mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-08 11:17:25 +00:00
Merge pull request #52 from Hestia-Homes/master
move dvc pull to github actions
This commit is contained in:
commit
03dc72799a
2 changed files with 10 additions and 2 deletions
9
.github/workflows/Deploy.yml
vendored
9
.github/workflows/Deploy.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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" ]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue