mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 17:06:09 +00:00
feat: update.sh updates an installer or manual installation in one command
Updating took four steps of commands copied from the README, with a diff to read for settings.py and the nginx config. update.sh does them: run from the repository (git show origin/master:update.sh | bash), it is always the newest one, also on an installation that has none yet. Nothing changes before its checks pass: root, an installation, with PostgreSQL --database-backed-up, and an older version's own settings.py moved into data/local_settings.py first (it stops and shows how that settings.py differs from its version's template). Then it stops the panel, backs it up into /root/webvirtcloud-backup-<date>, pulls master, installs the requirements (LDAP's too when installed), migrates, collects the static files, gives the files to the panel's user, installs the units and starts the panel. It does not replace the nginx config, which holds the installation's own lines: it prints what the new version changes in it. The whole script is one function, so the pull cannot change what runs. dev/test-installer.sh IMAGE FROM installs FROM and updates it to HEAD; the Installer workflow runs it from v4.3.0 on Debian 13 and AlmaLinux 10. The README's update section is the command and what it does.
This commit is contained in:
parent
29a1cbcace
commit
29d4bc2e7a
4 changed files with 272 additions and 89 deletions
24
.github/workflows/installer.yml
vendored
24
.github/workflows/installer.yml
vendored
|
|
@ -1,6 +1,7 @@
|
|||
name: Installer
|
||||
|
||||
# install.sh on each supported distribution (dev/test-installer.sh): on each
|
||||
# install.sh on each supported distribution, and update.sh from the last
|
||||
# release on two (dev/test-installer.sh): on each
|
||||
# push to master (the panel it installs changed), on a pull request that
|
||||
# changes the installer or what it installs, and weekly, as the
|
||||
# distributions' packages change under it
|
||||
|
|
@ -12,6 +13,7 @@ on:
|
|||
- install.sh
|
||||
- webvirtcloud.sh
|
||||
- conf/**
|
||||
- update.sh
|
||||
- dev/test-installer.sh
|
||||
- .github/workflows/installer.yml
|
||||
schedule:
|
||||
|
|
@ -45,3 +47,23 @@ jobs:
|
|||
|
||||
- name: Install and check the panel
|
||||
run: dev/test-installer.sh "${{ matrix.image }}"
|
||||
|
||||
# update.sh from the last release, as an operator runs it
|
||||
update:
|
||||
name: ${{ matrix.image }} from v4.3.0
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 40
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
image:
|
||||
- debian:13
|
||||
- almalinux:10
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # the release's commit
|
||||
|
||||
- name: Install v4.3.0, update to this commit and check the panel
|
||||
run: dev/test-installer.sh "${{ matrix.image }}" v4.3.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue