-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (29 loc) · 958 Bytes
/
.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
language: python
python:
- 3.8
sudo: required
services:
- docker
before_install:
- apt-get update
- apt-get install gcc libtiff5-dev libjpeg62-turbo-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev libharfbuzz-dev libfribidi-dev tcl8.6-dev tk8.6-dev python-tk -y
- apt-get install python3-dev default-libmysqlclient-dev -y
script:
- docker build -t minhpro332/capstone .
- docker run -d -p 8000:8000 minhpro332/capstone
after_success:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push minhpro332/capstone
# DOCKER_PASSWORD = minhpro332
# DOCKER_USERNAME = minhpro332
# deploy:
# provider: elasticbeanstalk
# region: ap-southeast-1
# app: movie-booking
# env: MovieBooking-env-1
# bucket_name: elasticbeanstalk-ap-southeast-1-792974750178
# bucket_path: movie-booking
# on:
# branch: dockerized
# access_key_id: $AWS_ACCESS_KEY
# secret_access_key: $AWS_SECRET_KEY