forked from tinymce/tinymce-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwercker.yml
More file actions
77 lines (71 loc) · 2.08 KB
/
wercker.yml
File metadata and controls
77 lines (71 loc) · 2.08 KB
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
box: jointiny/tiny-cloud-docs-build:latest
no-response-timeout: 30
build:
steps:
- add-to-known_hosts:
hostname: github.com
- add-ssh-key:
keyname: SSH_KEY
- script:
name: install moxiedoc
code: npm i -g ephox/moxiedoc#feature/tinymcenext
- bundle-install:
deployment: true
jobs: 10
- script:
name: import tinymce api reference
code: _scripts/api-reference.sh
- script:
name: build
code: _scripts/build.sh
check_links:
box: jointiny/tiny-cloud-docs-linkchecker
steps:
- script:
name: check links
code: _scripts/check-links-staging.sh
- s3sync:
key-id: $AWS_ACCESS_KEY_ID
key-secret: $AWS_SECRET_ACCESS_KEY
bucket-url: $S3_BUCKET/docs/
source-dir: _report
delete-removed: false
invalidate_cache:
steps:
- script:
code: aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/docs/*"
deploy_branch:
steps:
- script:
name: prepare files
code: _scripts/deploy-branch.sh
- script:
name: get bucket name
code: export S3_BUCKET=$(node -e 'console.log(`s3://docs-v5-${process.env.WERCKER_GIT_BRANCH.replace(/[/\s]/g, "-").replace(/[^0-9a-zA-Z-]/g, "").replace(/-$/g, "").toLowerCase()}.staging.tiny.cloud`)')
- s3sync:
key-id: $AWS_ACCESS_KEY_ID
key-secret: $AWS_SECRET_ACCESS_KEY
bucket-url: $S3_BUCKET/docs/
source-dir: $S3_SOURCE
deploy_staging:
steps:
- script:
name: prepare files
code: _scripts/deploy-staging.sh
- s3sync:
key-id: $AWS_ACCESS_KEY_ID
key-secret: $AWS_SECRET_ACCESS_KEY
bucket-url: $S3_BUCKET/docs/
source-dir: $S3_SOURCE
opts: --delete-removed
deploy_production:
steps:
- script:
name: prepare files
code: _scripts/deploy-production.sh
- s3sync:
key-id: $AWS_ACCESS_KEY_ID
key-secret: $AWS_SECRET_ACCESS_KEY
bucket-url: $S3_BUCKET/docs/
source-dir: $S3_SOURCE
opts: --delete-removed