-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
82 lines (77 loc) · 1.91 KB
/
.drone.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
kind: pipeline
name: default
steps:
- name: lint-infra
image: hashicorp/terraform
commands:
- terraform fmt --check infra || { echo -e "\n^ The above files could use some 'terraform fmt' love" >&2; exit 1; }
when:
event:
- pull_request
- name: publish-legal
image: plugins/s3-sync:1
settings:
bucket: osv-im-us-west-2-legal-assets
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_access_key
region: us-west-2
source: legal
delete: true
cloudfront_distribution: E1GIXA14V6CST6
when:
event:
- push
branch:
- master
- name: publish-globetheater
image: plugins/s3-sync:1
settings:
bucket: osv-im-us-west-2-globetheater-assets
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_access_key
region: us-west-2
source: globetheater
delete: true
cloudfront_distribution: E125YIYAMJVUWR
when:
event:
- push
branch:
- master
- name: generate-root
image: node
commands:
- cd root && yarn && make generate
when:
event:
- push
branch:
- master
- name: publish-root
image: plugins/s3-sync:1
settings:
bucket: osv-im-us-west-2-root-assets
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_access_key
region: us-west-2
source: root/dist
delete: true
cloudfront_distribution: E1ZAUILNHKOJ6B
cache_control:
"*.png": "public, max-age=31536000"
"*.jpg": "public, max-age=31536000"
"*.js": "public, max-age=31536000"
redirects:
coda: https://coda.io/?r=-6jrY-ASS4-NWgFmz-I36A
jsx: https://indi.com/p/olegsv/hbvzv
when:
event:
- push
branch:
- master