feat: support Baota manual deployment and managed updates
Release / release (push) Canceled after 0s
Release / release (push) Canceled after 0s
This commit is contained in:
@@ -169,6 +169,8 @@ compare_archive_file() {
|
||||
|
||||
compare_archive_file ./ops/update.sh deploy/update.sh
|
||||
compare_archive_file ./ops/baota-start.sh deploy/baota-start.sh
|
||||
compare_archive_file ./ops/baota-init.sh deploy/baota-init.sh
|
||||
compare_archive_file ./ops/release-public.pem deploy/release-public.pem
|
||||
compare_archive_file ./ops/baota.env.example deploy/baota.env.example
|
||||
compare_archive_file ./ops/kaidi-update.path deploy/systemd/kaidi-update.path
|
||||
compare_archive_file ./ops/kaidi-update.service deploy/systemd/kaidi-update.service
|
||||
@@ -176,7 +178,10 @@ compare_archive_file ./ops/kaidi-finance.service deploy/systemd/kaidi-finance.se
|
||||
compare_archive_file ./ops/kaidi-finance.conf deploy/nginx/kaidi-finance.conf
|
||||
tar -tvzf "$ARTIFACT" ./ops/baota-start.sh | grep -Eq '^-.{2}x.{2}x.{2}x' \
|
||||
|| { printf 'Baota Spring Boot launcher is not executable\n' >&2; exit 1; }
|
||||
tar -tvzf "$ARTIFACT" ./ops/baota-init.sh | grep -Eq '^-.{2}x.{2}x.{2}x' \
|
||||
|| { printf 'Baota initializer is not executable\n' >&2; exit 1; }
|
||||
bash -n "$ROOT/deploy/baota-start.sh"
|
||||
bash -n "$ROOT/deploy/baota-init.sh"
|
||||
cmp install.sh "$ROOT/deploy/install.sh" \
|
||||
|| { printf 'Release installer does not match deploy/install.sh\n' >&2; exit 1; }
|
||||
bash -n "$ROOT/deploy/purge.sh"
|
||||
|
||||
Reference in New Issue
Block a user