Skip to content

Merge pull request #236 from sunya-ch/ci #12

Merge pull request #236 from sunya-ch/ci

Merge pull request #236 from sunya-ch/ci #12

Workflow file for this run

on:
push:
branches:
- main
env:
TAG: "v0.7.7"
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: ${{ env.TAG }}

Check failure on line 39 in .github/workflows/push-to-main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/push-to-main.yml

Invalid workflow file

The workflow is not valid. .github/workflows/push-to-main.yml (Line: 39, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG .github/workflows/push-to-main.yml (Line: 57, Col: 27): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG
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:${{ env.TAG }}
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 }}