Skip to content

ci: Upgrade test system #718

ci: Upgrade test system

ci: Upgrade test system #718

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
# Remove non-installable git packages. There git-svn can not be installed
# because the image contains newer versions which do not have matching git-svn
# in enabled repositories.
- name: APT cleanup
run: sudo apt-get purge git git-man
- name: Exim
run: sudo ./configure-system
- name: Bootstrap
run: |
sudo ./bootstrap <<EOT
weblate.example.com
CI Weblate
https://[email protected]/123
0
TOKEN
EOT
cat /etc/weblate-bootstrap
- name: Exim
run: sudo ./install-exim
- name: PostgreSQL
run: sudo ./install-posgtresql
- name: Weblate
run: sudo ./install-weblate --nocert
- name: Munin
run: sudo ./install-munin
- name: Upgrade
run: sudo ./upgrade-weblate --nodiff
- name: Upgrade (lazy restart)
run: sudo ./upgrade-weblate --nodiff --lazy-restart
- name: Migrate
run: sudo ./migrate-docker --nomail
- name: Logs
if: always()
run: |
cd /home/weblate/weblate
docker compose logs
docker:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
# Remove non-installable git packages. There git-svn can not be installed
# because the image contains newer versions which do not have matching git-svn
# in enabled repositories.
- name: APT cleanup
run: sudo apt-get purge git git-man
- name: Exim
run: sudo ./configure-system
- name: Bootstrap
run: |
sudo ./bootstrap <<EOT
weblate.example.com
CI Weblate
https://[email protected]/123
0
TOKEN
EOT
cat /etc/weblate-bootstrap
- name: Docker
run: sudo ./install-docker
- name: Exim
run: sudo ./install-exim
- name: Weblate
run: sudo ./install-weblate-docker --nocert --nomail
- name: Upgrade
run: sudo ./upgrade-weblate
- name: Logs
if: always()
run: |
cd /home/weblate/weblate
docker compose logs