mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-07-12 13:28:58 +00:00
commit
546cfd4f35
1 changed files with 7 additions and 9 deletions
16
.github/workflows/MLPipelinePostMerge.yml
vendored
16
.github/workflows/MLPipelinePostMerge.yml
vendored
|
|
@ -44,11 +44,11 @@ jobs:
|
||||||
dvc push -r dev
|
dvc push -r dev
|
||||||
|
|
||||||
|
|
||||||
Register-New-Model:
|
Register-New-Model-Dev:
|
||||||
if: github.event.pull_request.merged == true
|
if: github.event.pull_request.merged == true
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
|
@ -68,11 +68,7 @@ jobs:
|
||||||
REGISTER_MODEL_NAME=$(echo ${{ github.event.pull_request.head.ref }} | awk -F"-" '{print $1}')
|
REGISTER_MODEL_NAME=$(echo ${{ github.event.pull_request.head.ref }} | awk -F"-" '{print $1}')
|
||||||
# REGISTER_MODEL_NAME=$(echo ${{github.ref_name}} | awk -F"-" '{print $1}')
|
# REGISTER_MODEL_NAME=$(echo ${{github.ref_name}} | awk -F"-" '{print $1}')
|
||||||
git config user.name "Github-Bot"
|
git config user.name "Github-Bot"
|
||||||
git config user.email "Github-Bot"
|
git config user.email "Github-Bot@no-reply.com"
|
||||||
|
|
||||||
git fetch origin
|
|
||||||
git merge origin/master
|
|
||||||
git pull
|
|
||||||
|
|
||||||
gto register ${REGISTER_MODEL_NAME}
|
gto register ${REGISTER_MODEL_NAME}
|
||||||
gto assign ${REGISTER_MODEL_NAME} --stage dev
|
gto assign ${REGISTER_MODEL_NAME} --stage dev
|
||||||
|
|
@ -80,6 +76,7 @@ jobs:
|
||||||
|
|
||||||
Register-Prediction-Image-Dev:
|
Register-Prediction-Image-Dev:
|
||||||
needs: Promote-Model-To-Dev
|
needs: Promote-Model-To-Dev
|
||||||
|
# needs: [Promote-Model-To-Dev, Register-New-Model-Dev] WILL ADD BACK ONCE REGISTER WORKS
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -100,10 +97,11 @@ jobs:
|
||||||
cd modules/ml-pipeline/src/pipeline/src
|
cd modules/ml-pipeline/src/pipeline/src
|
||||||
dvc pull -r dev
|
dvc pull -r dev
|
||||||
|
|
||||||
- name: Build Prediction docker image (TODO - NEED LAMBDA IMAGE)
|
- name: Build Prediction docker image (TODO - NEED LAMBDA IMAGE, need to add version from gto registry)
|
||||||
run: |
|
run: |
|
||||||
cd modules/ml-pipeline/src/pipeline/
|
cd modules/ml-pipeline/src/pipeline/
|
||||||
docker build . --file Prediction.Dockerfile --tag prediction_test
|
REGISTER_MODEL_NAME=$(echo ${{ github.event.pull_request.head.ref }} | awk -F"-" '{print $1}')
|
||||||
|
docker build . --file Prediction.Dockerfile --tag ${REGISTER_MODEL_NAME}
|
||||||
|
|
||||||
- name: ECR Login - Dev
|
- name: ECR Login - Dev
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue