-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
41 lines (35 loc) · 1.01 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
37
38
39
40
41
sudo: required
services:
- docker
language: python
python:
- "3.5"
before_install:
- pip --version
- docker --version
- docker-compose --version
- docker build -t agustinmag/flask-client-test ./flaskapp
script:
# Execute pytest
- docker run agustinmag/flask-client-test pytest
after_success:
# Build docker images
- docker build -t agustinmag/flask-client ./flaskapp
- docker build -t agustinmag/flask-nginx ./nginx
# Log in to docker CLI
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin
# Take those images and push them to Docker Hub
- docker push agustinmag/flask-client
- docker push agustinmag/flask-nginx
deploy:
edge: true
provider: elasticbeanstalk
region: us-east-2
app: wallet-sentinel
env: WalletSentinel-env
bucket_name: elasticbeanstalk-us-east-2-577354254112
bucket_path: wallet-sentinel
on:
branch: master
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY