Compare commits
1 commit
412f7b2d74
...
f487979c55
Author | SHA1 | Date | |
---|---|---|---|
Simon Bruder | f487979c55 |
|
@ -3,6 +3,10 @@ set -euo pipefail
|
||||||
|
|
||||||
target="$1"
|
target="$1"
|
||||||
|
|
||||||
|
function rsync_command() {
|
||||||
|
rsync -varzLP --delete "result-${target}/" "schabernack@yuzuru.sbruder.xyz:${directory}" "$@"
|
||||||
|
}
|
||||||
|
|
||||||
case "$target" in
|
case "$target" in
|
||||||
"staging")
|
"staging")
|
||||||
nix_package="schulischer-schabernack-staging"
|
nix_package="schulischer-schabernack-staging"
|
||||||
|
@ -19,4 +23,5 @@ case "$target" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
nix build -o "result-${target}" -L ".#${nix_package}"
|
nix build -o "result-${target}" -L ".#${nix_package}"
|
||||||
rsync -varzLP --delete "result-${target}/" "schabernack@yuzuru.sbruder.xyz:${directory}"
|
rsync_command --include "episodes" --include "episodes/*" --exclude "*"
|
||||||
|
rsync_command
|
||||||
|
|
Loading…
Reference in a new issue