-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yaml
35 lines (34 loc) · 959 Bytes
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
name: Train Classifier
author: Christian Sargusingh
description: Trains a target classifer and compiles training data.
inputs:
SLACK_IDENTIFIER:
description: 'Slack channel webhook path'
required: true
MODEL:
description: 'Target model for training'
required: true
ACCESS_KEY_ID:
description: 'Incuvers ml-ci aws s3 user access key'
required: true
SECRET_ACCESS_KEY_ID:
description: 'Incuvers ml-ci aws s3 user secret access key'
required: true
MODE:
description: 'can only take on train or eval modes'
required: true
runs:
using: 'composite'
steps:
- name: build docker image target model
working-directory: ${{ github.action_path }}
run: ./scripts/build.sh
shell: bash
- name: run model container
working-directory: ${{ github.action_path }}
run: ./scripts/run.sh
shell: bash
- name: container cleanup
run: docker image prune
shell: bash