forked from up1/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codeship-steps.yml
71 lines (71 loc) · 2.01 KB
/
codeship-steps.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
- type: parallel
name: testing
steps:
- type: serial
name: prepare_site
steps:
- name: jet_release_notes
service: aws
command: sh bin/jet.sh
- name: build
service: documentation
command: bash bin/build.sh
- name: post-process
service: documentation
command: gulp post-process
- name: htmlproofer
service: documentation
exclude: master
command: bundle exec rake htmlproofer
- type: serial
name: linters
service: documentation
steps:
- name: SCSS
command: bundle exec scss-lint
- name: JSON
command: gulp lint
- name: Jekyll
command: bundle exec jekyll doctor
- name: Spellcheck
command: yarn run check
- name: fail_master_on_forks
service: documentation
tag: master
command: sh bin/check_fork.sh
- type: parallel
name: deploying
tag: "^(master|staging/.*|private/.*)$"
steps:
- type: serial
name: s3_deployment
steps:
- name: s3_sync
service: aws
command: sh bin/s3.sh sync
- name: s3_redirects
service: aws
command: sh bin/s3.sh configure_redirects
- name: cloudfront
service: aws
command: sh bin/s3.sh invalidate_cdn
- type: serial
tag: "^master$"
steps:
- name: s3_website
service: aws
command: sh bin/s3.sh configure_website _website.json
- name: s3_lifecycle
service: aws
command: sh bin/s3.sh configure_lifecycle _lifecycle.json
- name: swiftype
service: documentation
command: sh bin/swiftype.sh
- type: push
tag: "^master$"
name: push_docker_hub
service: documentation
image_name: codeship/documentation
image_tag: latest
registry: https://index.docker.io/v1/
encrypted_dockercfg_path: dockercfg.encrypted