improve upgrade and update to 7.0.5 #51

Merged
meaz merged 6 commits from staging into main 2024-08-06 21:23:23 +02:00
Owner

To be merged when deploying to prod.

To be merged when deploying to prod.
muppeth was assigned by meaz 2024-07-15 18:37:27 +02:00
meaz added 4 commits 2024-07-15 18:37:27 +02:00
- Upgrade to version 7.0.2
- Added extra check tasks to upgrade process

Reviewed-on: #45
Reviewed-by: meaz <meaz@no-reply@disroot.org>
Co-authored-by: muppeth <muppeth@disroot.org>
Co-committed-by: muppeth <muppeth@disroot.org>
Co-authored-by: meaz <meaz@disroot.org>
Reviewed-on: #47
Reviewed-by: meaz <meaz@no-reply@disroot.org>
Co-authored-by: muppeth <muppeth@disroot.org>
Co-committed-by: muppeth <muppeth@disroot.org>
See Disroot/Disroot-Project#920

@muppeth I've just have a question about why you restart forgejo with:

```
- name: '[UPGRADE] - Restart forgejo'
  systemd:
    name: forgejo
    state: restarted
  when:
    - forgejo_is_installed.rc == 0
    - forgejo_health is defined and forgejo_health.rc is defined and forgejo_health.rc == 0

- name: '[UPGRADE] - Wait for forgejo to be back online'
  pause:
    seconds: 10
  when:
    - forgejo_is_installed.rc == 0
    - forgejo_health is defined and forgejo_health.rc is defined and forgejo_health.rc == 0
```

does forgejo need to be up to run `forgejo manager flush-queues` ?  I'm asking coz we stop forgejo just after flush.

Reviewed-on: #49
Reviewed-by: muppeth <muppeth@no-reply@disroot.org>
Co-authored-by: meaz <meaz@disroot.org>
Co-committed-by: meaz <meaz@disroot.org>
meaz added 1 commit 2024-07-30 18:21:58 +02:00
Reviewed-on: #52
Reviewed-by: muppeth <muppeth@no-reply@disroot.org>
Co-authored-by: meaz <meaz@disroot.org>
Co-committed-by: meaz <meaz@disroot.org>
muppeth approved these changes 2024-08-06 21:15:46 +02:00
meaz changed title from WIP: improve upgrade and update to 7.0.5 to improve upgrade and update to 7.0.5 2024-08-06 21:20:46 +02:00
meaz added 1 commit 2024-08-06 21:23:16 +02:00
meaz merged commit 5bd74bd11b into main 2024-08-06 21:23:23 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Disroot-Ansible/forgejo#51
No description provided.