-
Notifications
You must be signed in to change notification settings - Fork 0
/
.shippable.yml
49 lines (41 loc) · 1.62 KB
/
.shippable.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
language: node_js
node_js:
- 6.11.5
branches:
only:
- staging
- master
env:
global:
# Shippable API token used to trigger deploy
- secure: HQVobaonseebLJ9GOR5pYjnEKG8m9aWVwr5RIr9zIHwVqBbZnkUZBhXms7k7Qa9KT8jalol4rFXvwSOPse5Pl/rzCmWm4o2UJzUNRf+iTRGsj6IFkrM6uaysKH3yZOI8qZarI/qLcGtdoQA3cQ5qKWLfwCia8VwoK1Gr368DUo/hle5m5PYAmIQEFZii/iabjzzrembK0phzmHfwinR43LL4jwIOLk3AAsWhLSxLZUhtGR5hDu6pdj6YIPExPemQ+B/3tbR5NlN7Z1/2/1Jht8NN69pa5/3Dq6ryEhUI5WHtbDpqHNhQE774Xr8u6y8WjPFo7kU/63XSrweP4EDyAQ==
build:
ci:
# Create the version file
- ./create_version.sh
# Pull latest image to be used as cache
- docker pull nrgi/jade-revenues:$BRANCH || echo 'Cache not available'
# Use the `--cache-from` option to use the latest image in the repo as a cache for this build. Available since Docker 1.13
# This should speed up the build time.
- docker build -t nrgi/jade-revenues:$BRANCH.$COMMIT --cache-from nrgi/jade-revenues:$BRANCH .
# Create the `latest` tag and force it in case the tag is already there from a previous build
- docker tag nrgi/jade-revenues:$BRANCH.$COMMIT nrgi/jade-revenues:$BRANCH
- docker push nrgi/jade-revenues:$BRANCH
- docker push nrgi/jade-revenues:$BRANCH.$COMMIT
# Trigger deploy through building a repo with deploy configuration
- ./shippable-deploy.sh
integrations:
hub:
- integrationName: nrgiDockerHub
type: docker
notifications:
- integrationName: email
type: email
recipients:
branches:
only:
- master
- staging
on_success: change
on_failure: always