-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
68 lines (52 loc) · 1.84 KB
/
bitbucket-pipelines.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
67
68
# This is an example Starter pipeline configuration
# Use a skeleton to build, test, and deploy using manual and parallel steps
# -----
# You can specify a custom Docker image from Docker Hub as your build environment.
image: python:3.10
pipelines:
default:
- parallel:
- step:
name: 'Build and Test'
script:
- echo "Your build and test goes here..."
- step:
name: 'Lint'
script:
- echo "Your linting goes here..."
- step:
name: 'Security scan'
script:
- echo "Your security scan goes here..."
- step:
name: 'Deployment to Staging'
clone:
lfs: true
deployment: staging
script:
- echo "Your deployment to staging script goes here..."
- ls -lh assets/pytorch_model.bin # 26M large-file.zip
# Install pipenv
- pip install pipenv
# Remove any existing Pipfile.lock
- rm Pipfile.lock
# Install dependencies from Pipfile
- pipenv install --deploy
- step:
name: 'Deployment to Production'
deployment: production
clone:
lfs: true
trigger: 'manual'
script:
- echo "Your deployment to production script goes here..."
- ls -lh assets/pytorch_model.bin # 26M large-file.zip
# Install pipenv
- pip install pipenv
# Remove any existing Pipfile.lock
- rm Pipfile.lock
# Install dependencies from Pipfile
- pipenv install --deploy
# Start UVicorn server
- echo "Starting UVicorn server..."
- pipenv run uvicorn naturalness_score.api:app --host=0.0.0.0 --port=8000