-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
66 lines (64 loc) · 2.56 KB
/
action.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: 'Deploy to Algorithmia'
description: 'Continuous Deployment of ML models and inference scripts from an ML repository to Algorithmia'
branding:
icon: 'alert-circle'
color: 'purple'
inputs:
algorithmia_api_key:
description: 'Algorithmia API Key, used when uploading the model file'
required: true
algorithmia_username:
description: 'Algorithmia Username, used as Git Commit Username and as part of default model upload path'
required: true
algorithmia_email:
description: 'Algorithmia Email, used as Git Commit Email'
required: false
default: '[email protected]'
algorithmia_password:
description: 'Algorithmia Password. Only required if the algorithm is hosted on Algorithmia.'
required: false
github_username:
description: 'Github username owning the algorithm repository, used to clone the algorithm repository. Only required if the algorithm is hosted on Github.'
required: false
github_pat:
description: 'Github Personal Access Token, used to clone the algorithm repository. Only required if the algorithm is hosted on Github.'
required: false
algorithmia_algoname:
description: 'Algorithmia Algorithm name'
required: true
algorithmia_uploadpath:
description: 'Algorithmia data collection name to upload the model file'
required: true
default: 'data://$ALGORITHMIA_USERNAME/$ALGORITHMIA_ALGONAME'
model_path:
description: 'Path of the model file to be uploaded to Algorithmia'
required: true
default: 'model.pkl'
notebook_path:
description: 'Path of the notebook to be executed by this action'
required: false
default: 'model_training.ipynb'
git_host:
description: Git host for the Algorithmia algorithm repository. Change to git.algorithmia.com if the algorithm is hosted on Algorithmia Marketplace or git.YOUR_DOMAIN for enterprise installations.
required: false
default: 'github.com'
algorithmia_api:
description: API endpoint Algorithmia installation, for enterprise customers.
required: false
default: 'https://api.algorithmia.com'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.algorithmia_api_key }}
- ${{ inputs.algorithmia_username }}
- ${{ inputs.algorithmia_email }}
- ${{ inputs.algorithmia_algoname }}
- ${{ inputs.algorithmia_password }}
- ${{ inputs.github_username }}
- ${{ inputs.github_pat }}
- ${{ inputs.algorithmia_uploadpath }}
- ${{ inputs.model_path }}
- ${{ inputs.notebook_path }}
- ${{ inputs.git_host }}
- ${{ inputs.algorithmia_api }}