-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
32 lines (32 loc) · 2.08 KB
/
.travis.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
sudo: required
language: node_js
node_js:
- '6'
- node
sudo: required
services:
- docker
before_install:
- npm install -g npm@'>=2.13.5'
script:
- npm test
after_success:
- if [ "$TRAVIS_BRANCH" == "$TRAVIS_TAG" ]; then
docker build -t xogroup/helm-chart-s3-publisher:latest -t xogroup/helm-chart-s3-publisher:$TRAVIS_TAG .;
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push xogroup/helm-chart-s3-publisher;
echo "Built to DockerHub";
else
echo "Skipping deployment with the dockerhub provider because this is not a tagged commit";
fi
deploy:
provider: npm
email: xo-npmjs.group@xogrp.com
api_key:
secure: q4BpuEvpKGmXA8uezilbFY2f1CliD5pEw85jp1lgOV75b/1rQ73JZpga5WiTTmKlb5LEfgVayWg4fnM8q8BXMIPmfpQ2FkJNIx0qi5lWZMV9ZsGOUVQF23YQ1mc9pTAu1zAThd8NvJlKhAHyeUZoaTpFbD61knESH+tAJNlPqlPDFj6Z2Z1DnqSkYt+m49vfBfy1Xkv9HcNgkk5egnfLvfdqycsyksgi4Yxofv9LCa9/UoXlACJfFwSsSr4M56OKjNHAk2pMLVNqxBvfIQuIvfKWq60ECyY63iQzv+21il7DnJZibPqztps6KvP07oe3FvkAPl+rhFLs+HeDq6aqqOS4SfZVIuWQPKWdICW1j2N04duC4HDyhqitZHc0txJXzvOBQNtM002Qmb2AAZwJLa1TXMpJKfV4sx8Qlk0Q4lVzPCGe5y5VQW2Ne3UgQ7HgO5fVfJJjnuNAsEiT6y7QViS5GhMi4YDGOAyExoWFkJ9rN60zxuXUxCS7B/TpfqsVzZFnY9Zm0FZ3PpblGfV9+8MzJxr9L4gSiyOBy+2HeISCHHOk0V9744+jzkeHBWCngCdPR4DGhqfDg7tvC7Z8rK6ZDkkm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