Update deploy script
This commit is contained in:
parent
a549f6986d
commit
ac96903071
1 changed files with 9 additions and 1 deletions
10
deploy.fish
10
deploy.fish
|
@ -1,7 +1,15 @@
|
|||
#!/usr/bin/env fish
|
||||
argparse --name=deploy 't/target=' 'b/branch=' -- $argv
|
||||
if test -n "$_flag_target"; and test -n "$_flag_branch"
|
||||
tar -c built/ packages/backend/built/ | ssh $_flag_target -C "./misskey/update.fish --branch $_flag_branch"
|
||||
tar -c \
|
||||
built/ \
|
||||
packages/backend/built/ \
|
||||
packages/frontend/built/ \
|
||||
packages/sw/built/ \
|
||||
packages/misskey-js/built/ \
|
||||
packages/misskey-reversi/built/ \
|
||||
packages/misskey-bubble-game/built/ \
|
||||
| ssh $_flag_target -C "./misskey/update.fish --branch $_flag_branch"
|
||||
else
|
||||
echo 'USAGE: ./deploy.fish --target <user@instance> --branch <git branch>'
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue