Skip to content

Merge pull request #223 from sunya-ch/doc #2

Merge pull request #223 from sunya-ch/doc

Merge pull request #223 from sunya-ch/doc #2

Workflow file for this run

on:
push:
branches:
- main
jobs:
check-change:
runs-on: ubuntu-latest
outputs:
base: ${{ steps.filter.outputs.base }}
modeling: ${{ steps.filter.outputs.modeling }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
base:
- 'dockerfiles/requirements.txt'
- 'dockerfiles/Dockerfile.base'
- '.github/workflows/build-push.yml'
modeling:
- 'src/**'
- 'model_training/**'
- 'hack/**'
- '.github/workflows/train-model.yml'
build-push:
needs: [check-change]
uses: ./.github/workflows/build-push.yml
with:
base_change: ${{ needs.check-change.outputs.base }}
image_repo: ${{ vars.IMAGE_REPO }}
image_tag: v0.7
push: true
secrets:
docker_username: ${{ secrets.BOT_NAME }}
docker_password: ${{ secrets.BOT_TOKEN }}
train-model:
needs: [check-change, build-push]
if: ${{ needs.check-change.outputs.modeling == 'true' }}
strategy:
matrix:
instance_type: [i3.metal]
uses: ./.github/workflows/train-model.yml
with:
pipeline_name: std_v0.7
instance_type: ${{ matrix.instance_type }}
ami_id: 'ami-0e4d0bb9670ea8db0'
github_repo: ${{ github.repository }}
model_server_image: ${{ vars.IMAGE_REPO }}/kepler-model-server:v0.7
trainers: LogisticRegressionTrainer,ExponentialRegressionTrainer,SGDRegressorTrainer,GradientBoostingRegressorTrainer,XgboostFitTrainer
secrets:
self_hosted_github_token: ${{ secrets.GH_SELF_HOSTED_RUNNER_TOKEN }}
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: ${{ secrets.AWS_REGION }}