build: update release files location
The destination of the release files was moved, so this patch updates that location.
This commit is contained in:
parent
d2e10fdef6
commit
8afd55ff6f
|
|
@ -12,6 +12,7 @@ SSH_KEY="$(rad path)/keys/radicle"
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
version="$1"
|
version="$1"
|
||||||
|
destination="/var/www/files.radicle.xyz/releases/$version"
|
||||||
|
|
||||||
if [ -z "$version" ]; then
|
if [ -z "$version" ]; then
|
||||||
echo "fatal: empty version number" >&2 ; exit 1
|
echo "fatal: empty version number" >&2 ; exit 1
|
||||||
|
|
@ -28,7 +29,7 @@ main() {
|
||||||
case "$confirmation" in
|
case "$confirmation" in
|
||||||
[Yy]*)
|
[Yy]*)
|
||||||
echo "Creating 'latest' symlink.."
|
echo "Creating 'latest' symlink.."
|
||||||
ssh -i "$SSH_KEY" "$SSH_ADDRESS" ln -snf "/mnt/radicle/files/releases/$version" /mnt/radicle/files/releases/latest ;;
|
ssh -i "$SSH_KEY" "$SSH_ADDRESS" ln -snf "$destination/$version" /mnt/radicle/files/releases/latest ;;
|
||||||
*)
|
*)
|
||||||
echo "Operation aborted."
|
echo "Operation aborted."
|
||||||
exit 1 ;;
|
exit 1 ;;
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ main() {
|
||||||
echo "fatal: empty version number" >&2 ; exit 1
|
echo "fatal: empty version number" >&2 ; exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
destination="/mnt/radicle/files/releases/$version"
|
destination="/var/www/files.radicle.xyz/releases/$version"
|
||||||
|
|
||||||
# Create remote folder.
|
# Create remote folder.
|
||||||
ssh -i "$SSH_KEY" "$SSH_ADDRESS" mkdir -p "$destination"
|
ssh -i "$SSH_KEY" "$SSH_ADDRESS" mkdir -p "$destination"
|
||||||
|
|
@ -52,7 +52,6 @@ main() {
|
||||||
fi
|
fi
|
||||||
done < build/TARGETS
|
done < build/TARGETS
|
||||||
|
|
||||||
# TODO(cloudhead): Don't pass `--tags` when we have canonical refs.
|
|
||||||
# Pushes tags without assuming the remote the user is using. It does this by
|
# Pushes tags without assuming the remote the user is using. It does this by
|
||||||
# using the pushurl directly, i.e.
|
# using the pushurl directly, i.e.
|
||||||
# `rad://z3gqcJUoA1n9HaHKufZs5FCSGazv5/<nid>`, where `<nid>` is the local Node
|
# `rad://z3gqcJUoA1n9HaHKufZs5FCSGazv5/<nid>`, where `<nid>` is the local Node
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue