-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (30 loc) · 3.02 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
33
34
35
36
---
# We need sudo to docker things
sudo: required
# What language do we use for the build
language: node_js
node_js:
- stable
# enable docker
services:
- docker
notifications:
email: false
env:
global:
- COMMIT=${TRAVIS_COMMIT::6}
# AWS_SECRET_ACCESS_KEY, AWS_ACCESS_KEY_ID, and AWS_ECR_ID
- secure: vXWY8SsiTeWxnP0xwPC2kRT3diV8Mtf65HpM9ckBN/+/GrA0K1EwpN3WuoIWzZ9SZ2t4LTRmgYy/muij0xjkTQEwMKLcHYNo25n6Xlha1TOzHeuCowaQCyZ8y5yqNZA9V98jQKpaImxYxHfTTK+GgQ9O4IVTPZQqavhTBSrWzFabEupJOSXcF6D5c6iUHAkKvRRZkSV/8U8r/eP3XsApLJxllZtbXwQkB+e477sxEO0WKgSX7ndLqC+onC6WBBWc47g5uXCrllTmGX+TsbeXBPTBhxANwANrAVAzrA/V7GYiqfSNQh3FufetQB0PbZ6uTZVTDV2WPOmbmbV8wtWEntiQqBfIVWa6Wy3h8zLhG+bhdbDNrroTEJFwNuQr1nXZAmn2e6SwA4TkuDiEOOEJF/oBtxqV3BE456/8b+eJlK+x/DiBOyZsQyEfv+MLDCQu3LpfHYQWaTFJKapcwzPSlrqpN65JdxlO8YEQbkYZqm2KkCGdQHrn+Exz4izTdn4c60PzQPNojxA4/fneDqAwXT6W3ACjBehhk8dKRqvXGwTB+o5Zpx7aBqWCGgnyvkKA2vD/C1JLfFlOjz258C64st9G9kj0c8yKOvtLM2tTHKSSqK393qPZpfx5uA89G1qrqiERa2N0EE6jVFMpk9eyk5WC4t47Qn0zB0ZVs+OEBdc=
- secure: FvCzm9mRB/gSzlPbvuVkxiQjmJ0Qjkdz5QW1qQ3JAhLIfT9Isad/Z/V2ZMrPASE7wL4UfIuITZX7q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ukksnmmJLxN06jTwr0CR89EFUWIHHYSw+WtUKOsg0pB5tB8q5UK32Sogi4BFznUm46ygpi9BFGzuoJOPZgRBiiRXrCyWmbewmgwk6xyWMhSIxh/hBVSUv6d8PMg/8DqDd+aKnPLvoRVRa7NOgnl96//noE6etgWI4nJvYdujIRrSNEsMkajVap9Jdbkg27hjVacstl6dRv46AFu0Qp6XjcxsVeM=
script:
- docker --version
- docker build -t hubot-ash:$COMMIT .
after_success:
- pip install --user awscli
- export PATH=$PATH:/.local/bin
- eval $(aws ecr get-login --no-include-email --region us-west-2)
- docker tag hubot-ash:$COMMIT $AWS_ECR_ID.dkr.ecr.us-west-2.amazonaws.com/hubot-ash:$COMMIT
- docker tag hubot-ash:$COMMIT $AWS_ECR_ID.dkr.ecr.us-west-2.amazonaws.com/hubot-ash:travis-$TRAVIS_BUILD_NUMBER
- if [[ "$TRAVIS_PULL_REQUEST" == "false" ]] && [[ "$TRAVIS_BRANCH" == "master" ]]; then docker tag hubot-ash:$COMMIT $AWS_ECR_ID.dkr.ecr.us-west-2.amazonaws.com/hubot-ash:master; fi
- docker push $AWS_ECR_ID.dkr.ecr.us-west-2.amazonaws.com/hubot-ash