-
Notifications
You must be signed in to change notification settings - Fork 69
/
.travis.yml
39 lines (39 loc) · 2.36 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
language: bash
script:
- mkdir -p ../template
- find . -name '*.json' -exec cp --parents \{\} ../template \;
- ls ../template
# Only keep json files uploading to S3
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
region: us-west-2
bucket: fortinet-aws-cloudformation-templates
acl: public_read
skip_cleanup: true
local_dir: ../template
upload-dir: $TRAVIS_BRANCH
on:
all_branches: true
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
region: us-west-2
bucket: fortinet-aws-cloudformation-templates
acl: public_read
skip_cleanup: true
local_dir: ../template
upload-dir: latest
on:
all_branches: true
# The S3 bucket should open public access
# Upload to both version folder and latest folder
branches:
only:
- /^(v|V)?(\d+\.)+\d+/
# Only triggered by releasing with version tag (eg. v1.2.0 or 1.2.0 or 1.2.0-beta)
env:
global:
- secure: XK0QXOv/huRVKFrErQ+Y3s1Fv909WYzaognLK9bpwtvDe7AqxAhpDjXiZwJB02pJ0oi0btooxfK/4GY3bkv1W8DZyQ7QrdZ10AYMFcrAuz3X4yQfRniBJLkuKk4pmOCH4xU9b5OVZZ78cX5XJDw9NEClgmPH0EYSwNDLfQcTVC0ora3VGvRibU0pG3ZNsHcw8vN1fmQTmwfXpaFpjHLdT4xYbMoMpZJsp/lIwSzWtwIG3fp3Riqm7RLXqulUcCtso9IRNphk9S1xoGxTvR1v7AzPml8aZBUv0mvEt7j0+7G7oiecXEb4Ocxujtz0xMy5BGM0TyYGdPUvfwi0g73iafoSTeMbAQAoYCgsALgOedB+XU1zP+kJNYdmB+BOqw5fY4pA8DhkhuGTaZNzwDhYsdV5HmIt0dSbMNe0cRO7OygX/TBxOfjgaUQY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