File tree Expand file tree Collapse file tree 4 files changed +1328
-17
lines changed Expand file tree Collapse file tree 4 files changed +1328
-17
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ jobs:
189189 - store_artifacts :
190190 path : ./apps/remix-ide/reports/screenshots
191191
192- publish-docker :
192+ publish :
193193 docker :
194194 # specify the version you desire here
195195 - image : circleci/node:10.19.0-buster
@@ -213,6 +213,7 @@ jobs:
213213 - run : npm run downloadsolc_root
214214 - run : npm run build
215215 - run : ./apps/remix-ide/ci/build_and_publish_docker_images.sh
216+ - run : ./apps/remix-ide/ci/publishIpfs
216217
217218 deploy-remix-alpha :
218219 docker :
@@ -260,7 +261,7 @@ workflows:
260261 - remix-ide-run-deploy :
261262 requires :
262263 - remix-libs
263- - publish-docker :
264+ - publish :
264265 requires :
265266 - remix-ide-chrome
266267 - remix-ide-firefox
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+
3+ const ipfsClient = require ( 'ipfs-http-client' )
4+ console . log ( 'current folder' , process . cwd ( ) )
5+ const folder = process . cwd ( ) + '/temp_publish_docker' ;
6+
7+ ( async ( ) => {
8+ const host = 'ipfs.komputing.org' // ethdev berlin ipfs node
9+ const ipfs = ipfsClient ( { host, port : 443 , protocol : 'https' } )
10+ try {
11+ let result = await ipfs . addFromFs ( folder , { recursive : true , pin : false } )
12+ const remoteFolder = result [ result . length - 1 ]
13+ console . log ( 'ipfs://' + remoteFolder . hash )
14+ console . log ( 'https://ipfsgw.komputing.org/ipfs/' + remoteFolder . hash )
15+ console . log ( 'https://gateway.ipfs.io/ipfs/' + remoteFolder . hash )
16+ } catch ( e ) {
17+ console . log ( e )
18+ }
19+ } ) ( )
You can’t perform that action at this time.
0 commit comments