Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Michał "rysiek" Woźniak
samizdat
Commits
411e04b7
Commit
411e04b7
authored
Sep 17, 2020
by
Michał "rysiek" Woźniak
🔒
Browse files
minor fix in .gitlab-ci.yml: not keeping the favicon around longer than needed
parent
730f3e33
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
411e04b7
...
...
@@ -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" '-'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment