Deploy Gogs lister to staging.
It lists 'git' origins (nothing to do for loader).
Plan:
- [x] Register task type to scheduler [1]
- [x] Register swhbot account on the gogs site (try.gogs.io for the tryout)
- [x] Generate access token and install it in the credential repository
- [ ] Update charts with new lister
- [x] Schedule a gog forge to list [2]
- [ ] Checks
[1]
```
10:25:14 swh-scheduler@db1:5432=> select * from task_type where type like 'list-gogs%';
+----------------+--------------------------------+----------------------------------------+------------------+--------------+--------------+----------------+------------------+-------------+-------------+
| type | description | backend_name | default_interval | min_interval | max_interval | backoff_factor | max_queue_length | num_retries | retry_delay |
+----------------+--------------------------------+----------------------------------------+------------------+--------------+--------------+----------------+------------------+-------------+-------------+
| list-gogs-full | Full update of a Gogs instance | swh.lister.gogs.tasks.FullGogsRelister | 90 days | 90 days | 90 days | 1 | 1000 | (null) | (null) |
+----------------+--------------------------------+----------------------------------------+------------------+--------------+--------------+----------------+------------------+-------------+-------------+
(1 row)
Time: 1159.368 ms (00:01.159)
```
[2]
```
swhscheduler@scheduler0:~$ swh scheduler --url http://scheduler0.internal.staging.swh.network:5008/ task add list-gogs-full https://try.gogs.io/api/v1/
Created 1 tasks
Task 33419470
Next run: today (2022-09-13T09:12:08.867813+00:00)
Interval: 90 days, 0:00:00
Type: list-gogs-full
Policy: recurring
Args:
'https://try.gogs.io/api/v1/'
Keyword args:
```