-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
42 lines (40 loc) · 984 Bytes
/
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
image: atlassian/default-image:2
pipelines:
default:
- step:
name: Run tests
caches:
- node
script:
- export CI=true
- npm install
- npm test
branches:
master:
- step:
name: Run tests
caches:
- node
script:
- export CI=true
- npm install
- npm test
- step:
name: Production build
caches:
- node
script:
- npm install
- npm run-script build
artifacts:
- build/**
- step:
name: Build Docker image
caches:
- docker
services:
- docker
script:
- docker build -t asirosh/orvisual-client:$(node version.js) .
- docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD
- docker push asirosh/orvisual-client:$(node version.js)