forked from chialab/aws-autoscaling-gitlab-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (36 loc) · 1.11 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
sudo: false
language: python
install:
- 'pip install awscli'
script:
- 'for template in $(ls *.yml); do aws cloudformation validate-template --template-body file://$template; done'
before_deploy:
- 'mkdir -p templates'
- 'cp *.yml templates'
deploy:
# Deploy templates in `s3://thebucket/org/repo/branch-name`.
- provider: 's3'
access_key_id: '$AWS_ACCESS_KEY_ID'
secret_access_key: '$AWS_SECRET_ACCESS_KEY'
region: '$AWS_DEFAULT_REGION'
bucket: '$S3_BUCKET'
upload-dir: '$TRAVIS_REPO_SLUG/$TRAVIS_BRANCH'
acl: 'public_read'
skip_cleanup: true
local_dir: 'templates'
on:
repo: 'Chialab/aws-autoscaling-gitlab-runner'
all_branches: true
# Deploy templates in `s3://thebucket/org/repo/commit-sha`.
- provider: 's3'
access_key_id: '$AWS_ACCESS_KEY_ID'
secret_access_key: '$AWS_SECRET_ACCESS_KEY'
region: '$AWS_DEFAULT_REGION'
bucket: '$S3_BUCKET'
upload-dir: '$TRAVIS_REPO_SLUG/$TRAVIS_COMMIT'
acl: 'public_read'
skip_cleanup: true
local_dir: 'templates'
on:
repo: 'Chialab/aws-autoscaling-gitlab-runner'
all_branches: true