forked from GokuMohandas/Made-With-ML
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 976 Bytes
/
serve.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: serve
on:
workflow_dispatch: # manual
push:
branches:
- main
permissions: write-all
jobs:
serve:
runs-on: ubuntu-22.04
steps:
# Configure AWS credentials
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::593241322649:role/github-actions-madewithml
role-session-name: s3access
aws-region: us-west-2
# Set up dependencies
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10.11'
cache: 'pip'
- run: python3 -m pip install anyscale==0.5.131 typer==0.9.0
# Serve model
- name: Serve model
run: |
export ANYSCALE_HOST=${{ secrets.ANYSCALE_HOST }}
export ANYSCALE_CLI_TOKEN=${{ secrets.ANYSCALE_CLI_TOKEN }}
anyscale service rollout --service-config-file deploy/services/serve_model.yaml