-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
83 lines (75 loc) · 1.64 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
83
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
steps:
- name: stage (test)
image: 72636c/stratus:base
commands:
- stratus stage
environment: &test-environment
AWS_ACCESS_KEY_ID:
from_secret: aws_access_key_id
AWS_REGION: us-east-1
AWS_SECRET_ACCESS_KEY:
from_secret: aws_secret_access_key
ENVIRONMENT: test
pull: always
when:
event:
- pull_request
- name: deploy (test)
image: 72636c/stratus:base
commands:
- stratus deploy
environment: *test-environment
pull: always
when:
event:
- pull_request
- name: sync (test)
image: amazon/aws-cli
commands:
- aws s3 sync --delete www-bucket s3://www.test.bryceandryanforeverandever.net
environment: *test-environment
when:
event:
- pull_request
- name: stage (prod)
image: 72636c/stratus:base
commands:
- stratus stage
environment: &prod-environment
<<: *test-environment
ENVIRONMENT: prod
pull: always
when:
event:
- pull_request
- name: deploy (prod)
image: 72636c/stratus:base
commands:
- stratus deploy
environment: *prod-environment
pull: always
when:
branch:
- master
event:
- push
- name: sync (prod)
image: amazon/aws-cli
commands:
- aws s3 sync --delete www-bucket s3://www.bryceandryanforeverandever.net
environment: *prod-environment
when:
branch:
- master
event:
- push
---
kind: signature
hmac: af36f06a20862aa4c934f88d8d079507edf103050fee2622345e4f058f63d017