-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (23 loc) · 882 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: generic
install: skip
script: skip
# Tell travis we need docker
services:
- docker
# Tell travis how to deploy code to AWS
deploy:
provider: elasticbeanstalk # We will deploy code to Elastic Beanstalk
region: us-west-2 # Specify your region
app: "my-first-app" # Copy it from Elastic Beanstalk dashboard
env: "Myfirstapp-env" # Copy it from Elastic Beanstalk dashboard
# Access Key ID and Secret Access Key as configured in IAM of AWS.
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
# Elastic Beanstalk will take code from S3 bucket and deploy it in container.
# Take it from AWS S3
bucket_name: "my-first-app-bucket"
# Folder where Travis CI will upload the code in zip file in this folder. Take it from AWS S3
bucket_path: "docker"
on:
# Deploy only when there are changes on the master branch
branch: main