This repository has been archived by the owner on Jun 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.drone.yml
97 lines (88 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
kind: pipeline
name: default
platform:
os: linux
arch: amd64
steps:
- name: restore
pull: true
image: coreyja/rust-cache:yarn
settings:
aws_access_key_id:
from_secret: CACHE_AWS_ACCESS_KEY_ID
aws_secret_access_key:
from_secret: CACHE_AWS_SECRET_ACCESS_KEY
cache_bucket: cache.dokku.coreyja
cache_download: true
depends_on:
- clone
- name: install
image: node:11.9
commands:
- "echo \"//my-registry.dokku.coreyja.com/:_authToken=$NPM_AUTH_TOKEN\" >> .npmrc"
- "echo \"//npm.fontawesome.com/:_authToken=$FONTAWESOME_AUTH_TOKEN\" >> .npmrc"
- yarn install --frozen-lockfile
environment:
FONTAWESOME_AUTH_TOKEN:
from_secret: FONTAWESOME_AUTH_TOKEN
NPM_AUTH_TOKEN:
from_secret: NPM_AUTH_TOKEN
depends_on:
- restore
- name: test
image: node:11.9
commands:
- yarn install --frozen
- yarn test
depends_on:
- install
- name: build
image: node:11.9
commands:
- yarn install --frozen
- yarn build
environment:
AWS_BUCKET:
from_secret: AWS_BUCKET
depends_on:
- test
- name: deploy
image: node:11.9
commands:
- yarn install --frozen
- yarn deploy
environment:
AWS_ACCESS_KEY_ID:
from_secret: AWS_ACCESS_KEY_ID
AWS_BUCKET:
from_secret: AWS_BUCKET
AWS_DISTRIBUTION_ID:
from_secret: AWS_DISTRIBUTION_ID
AWS_HOSTNAME:
from_secret: AWS_HOSTNAME
AWS_PROTOCOL:
from_secret: AWS_PROTOCOL
AWS_SECRET_ACCESS_KEY:
from_secret: AWS_SECRET_ACCESS_KEY
when:
branch:
- main
event:
- push
depends_on:
- build
- name: rebuild
image: coreyja/rust-cache:yarn
settings:
aws_access_key_id:
from_secret: CACHE_AWS_ACCESS_KEY_ID
aws_secret_access_key:
from_secret: CACHE_AWS_SECRET_ACCESS_KEY
cache_bucket: cache.dokku.coreyja
depends_on:
- install
---
kind: signature
hmac: 24df2c6eb14906098ca9da46b7e3133a9b6842cde2726cf17903f2b5c1cdd86b
...