/
shippable.yml
43 lines (39 loc) · 961 Bytes
/
shippable.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
resources:
- name: docs_repo
type: gitRepo
integration: avinci_gh
pointer:
sourceName: shippable/docs
branch: master
- name: aws_rc_cli
type: cliConfig
integration: aws_rc_access
pointer:
region: us-east-1
- name: aws_prod_cli
type: cliConfig
integration: aws_prod_access
pointer:
region: us-west-2
jobs:
- name: publish_prod_docs
type: runSh
steps:
- IN: docs_repo
switch: off
- IN: aws_prod_cli
- TASK:
- script: |
pushd $(shipctl get_resource_state "docs_repo")
./deployDocs.sh s3://docs.shippable.com us-west-2 production
popd
- name: publish_rc_docs
type: runSh
steps:
- IN: docs_repo
- IN: aws_rc_cli
- TASK:
- script: |
pushd $(shipctl get_resource_state "docs_repo")
./deployDocs.sh s3://rcdocs.shippable.com us-east-1 rc
popd