File tree 1 file changed +44
-0
lines changed 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ jobs :
3
+ build :
4
+ docker :
5
+ - image : circleci/node:10.15.1-browsers
6
+ environment :
7
+ NO_SANDBOX : true
8
+ steps :
9
+ - checkout
10
+ - run :
11
+ command : npm run build:docs:ipfs
12
+ - persist_to_workspace :
13
+ root : .
14
+ paths :
15
+ - ./docs/.vuepress/dist
16
+
17
+ deploy :
18
+ docker :
19
+ - image : olizilla/ipfs-dns-deploy:latest
20
+ environment :
21
+ DOMAIN : docs-beta.ipfs.io
22
+ BUILD_DIR : ./docs/.vuepress/dist
23
+ steps :
24
+ - attach_workspace :
25
+ at : /tmp/workspace
26
+ - run :
27
+ name : Deploy website to IPFS
28
+ command : |
29
+ pin_name="$DOMAIN build $CIRCLE_BUILD_NUMBER"
30
+ hash=$(pin-to-cluster.sh "$pin_name" /tmp/workspace/$BUILD_DIR)
31
+ echo "Website added to IPFS: https://ipfs.io/ipfs/$hash"
32
+ # Update DNSlink for prod or dev domain
33
+ if [ "$CIRCLE_BRANCH" == "master" ] ; then
34
+ dnslink-dnsimple -d $DOMAIN -r _dnslink -l /ipfs/$hash
35
+ fi
36
+ workflows :
37
+ version : 2
38
+ build-deploy :
39
+ jobs :
40
+ - build
41
+ - deploy :
42
+ context : ipfs-dns-deploy
43
+ requires :
44
+ - build
You can’t perform that action at this time.
0 commit comments