Commit 411e04b7 authored by Michał Woźniak's avatar Michał Woźniak
Browse files

minor fix in .gitlab-ci.yml: not keeping the favicon around longer than needed

parent 730f3e33
......@@ -40,10 +40,10 @@ samizdat-is-deploy:
- cp img/favicon.ico ./
# add everything to ipfs
- $CI_PROJECT_DIR/node_modules/go-ipfs/bin/ipfs --api=/ip4/$( getent hosts ipfs | cut -d ' ' -f 1 )/tcp/5001 add --progress=false -r ./ | sed -r -e "s/ $(basename $PWD)\/?/ /" | tee "$SAMIZDAT_TEMP"
# publish stuff to IPNS
- $CI_PROJECT_DIR/node_modules/go-ipfs/bin/ipfs --api=/ip4/$( getent hosts ipfs | cut -d ' ' -f 1 )/tcp/5001 name publish "$( tail -n 1 $SAMIZDAT_TEMP | cut -f 2 -d ' ' )"
# remove the favicon
- rm ./favicon.ico
# publish stuff to IPNS
- $CI_PROJECT_DIR/node_modules/go-ipfs/bin/ipfs --api=/ip4/$( getent hosts ipfs | cut -d ' ' -f 1 )/tcp/5001 name publish "$( tail -n 1 $SAMIZDAT_TEMP | cut -f 2 -d ' ' )"
# get the IPFS output and use it to update Gun
- cd "$CI_PROJECT_DIR/samizdat-cli/"
- cat "$SAMIZDAT_TEMP" | sed -r -e 's/added //' -e "s%^(.+) (.+)$%$PROJECT_PATH/\2 /ipfs/\1%" | node . gun-update -u "$GUN_USER" -p "$GUN_PASSWORD" -m 1 "$GUN_DOMAIN" '-'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment