Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 16 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '2.1'
version: "2.1"
orbs:
node: circleci/node@5.1.0

Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
- checkout:
path: ~/project/
- node/install:
node-version: '16.13'
node-version: "16.13"
- run: node --version
- run: npm i -g @railway/cli
- run:
Expand Down Expand Up @@ -76,7 +76,6 @@ jobs:
command: |
tox -e publish_model


section_08_deploy_app_container_via_railway:
<<: *defaults
steps:
Expand All @@ -86,7 +85,7 @@ jobs:
- checkout:
path: ~/project/
- node/install:
node-version: '16.13'
node-version: "16.13"
- run: node --version
- run: npm i -g @railway/cli
- run:
Expand Down Expand Up @@ -155,18 +154,18 @@ jobs:
steps:
- checkout
- *prepare_venv
- run:
- run:
name: Install requirements
command: |
. venv/bin/activate
pip install -r packages/regression_model/requirements.txt
- *fetch_data
- run:
- run:
name: Train model
command: |
. venv/bin/activate
PYTHONPATH=./packages/regression_model python3 packages/regression_model/regression_model/train_pipeline.py
- run:
- run:
name: Publish model to Gemfury
command: |
. venv/bin/activate
Expand Down Expand Up @@ -202,11 +201,11 @@ jobs:
name: Setup Heroku CLI
command: |
wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh
- run:
- run:
name: Build and Push Image
command: |
make build-ml-api-heroku push-ml-api-heroku
- run:
- run:
name: Release to Heroku
command: |
heroku container:release web --app $HEROKU_APP_NAME
Expand All @@ -232,7 +231,7 @@ jobs:
steps:
- checkout
- *prepare_venv
- run:
- run:
name: Install requirements
command: |
. venv/bin/activate
Expand All @@ -243,19 +242,18 @@ jobs:
. venv/bin/activate
chmod +x ./scripts/fetch_kaggle_large_dataset.sh
./scripts/fetch_kaggle_large_dataset.sh
- run:
- run:
name: Train model
command: |
. venv/bin/activate
PYTHONPATH=./packages/neural_network_model python3 packages/neural_network_model/neural_network_model/train_pipeline.py
- run:
- run:
name: Publish model to Gemfury
command: |
. venv/bin/activate
chmod +x ./scripts/publish_model.sh
./scripts/publish_model.sh ./packages/neural_network_model/


tags_only: &tags_only
filters:
branches:
Expand All @@ -281,12 +279,11 @@ workflows:
<<: *tags_only

- section_08_deploy_app_container_via_railway:
filters:
branches:
only:
- master
- demo

filters:
branches:
only:
- master
- demo
# test-all:
# jobs:
# - test_regression_model_py36
Expand Down
Loading