-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
42 lines (35 loc) · 906 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
31
32
33
34
35
36
37
38
39
40
41
42
language: python
sudo: required
services:
- docker
before_install:
- docker pull f5devcentral/containthedocs:latest
install:
- pip install awscli --upgrade
script:
- ./scripts/docker-docs.sh ./scripts/test-docs.sh
deploy:
# DEPLOY TO STAGING
- provider: s3
skip_cleanup: true
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: $AWS_S3_STAGE_BUCKET
local_dir: docs/_build/html
upload_dir: $AWS_DIR
on:
branch: staging
repo: F5Networks/f5-aci-servicecenter
# DEPLOY TO PRODUCTION
- provider: s3
skip_cleanup: true
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: $AWS_S3_PROD_BUCKET
local_dir: docs/_build/html
upload_dir: $AWS_DIR
on:
branch: master
repo: F5Networks/f5-aci-servicecenter
after_deploy:
- aws cloudfront create-invalidation --distribution-id $AWS_DIST_ID --paths $AWS_DIR