forked from homeiac/home
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
40 lines (37 loc) · 977 Bytes
/
wercker.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
box: python:2.7-slim
dev:
steps:
- pip-install
- internal/watch:
code: python app.py
reload: true
# Build definition
build:
# The steps that will be executed on build
steps:
# A step that executes `pip install` command
- pip-install
# A custom script step, name value is used in the UI
# and the code value contains the command that get executed
- script:
name: python unit test
code: |
python app_test.py
# Deploy definition
deploy:
steps:
# A step that executes `pip install` command
- pip-install
- script:
name: set port
code: |
export PORT=3000
- internal/docker-push:
username: $DOCKER_USERNAME
password: $DOCKER_PASSWORD
port: $PORT
tag: v1, $WERCKER_GIT_COMMIT
cmd: python /pipeline/source/app.py 3000
ports: "3000"
repository: gshiva/home
registry: https://registry.hub.docker.com