Funcionalitat/Millora #1255
openAdd duniter gitlab user credentials
70%
Description
GITLAB_CREDENTIALS = {
"git.duniter.org": {
"username": "weblate",
"token": "XXXXXXXXXXXXX",
}
}
Where XXXXXXXXXX is a real token ;-)
Then, some Weblate projects can use the gitlab repo :-)
Updated by Joan Cervan i Andreu over 2 years ago
- Status changed from Nou to En Progrés
- % Done changed from 0 to 10
ping @Moul G1 ;-)
Updated by Joan Cervan i Andreu over 2 years ago
- % Done changed from 10 to 20
I try to do using this wiki method:
Updated by Joan Cervan i Andreu over 2 years ago
- % Done changed from 20 to 30
Using this yaml setting:
WEBLATE_GITLAB_CREDENTIALS: git.duniter.org: username:weblate token:XXXXXXXXXXXXXXX
I get this error:
ERROR: The Compose file './docker-compose.override.yml' is invalid because: services.weblate.environment.WEBLATE_GITLAB_CREDENTIALS contains {"git.duniter.org": "username:weblate token:XXXXXXXXXXXX"}, which is an invalid type, it should be a string, number, or a null
Updated by Joan Cervan i Andreu over 2 years ago
- % Done changed from 30 to 40
Using this:
WEBLATE_GITLAB_CREDENTIALS: git.duniter.org: username: weblate,token: XXXXXXXXXXXXXXX
I get a new error:
ERROR: yaml.scanner.ScannerError: mapping values are not allowed here in "./docker-compose.override.yml", line 17, column 50
Updated by Joan Cervan i Andreu over 2 years ago
- % Done changed from 40 to 50
Same error. No mapping allowed :-(
WEBLATE_GITLAB_CREDENTIALS: "git.duniter.org": {username: weblate,token: XXXXXXXXXXXXXXX}
ERROR: yaml.scanner.ScannerError: mapping values are not allowed here in "./docker-compose.override.yml", line 17, column 52
Updated by Joan Cervan i Andreu over 2 years ago
- Assignee changed from Joan Cervan i Andreu to Moul G1
- % Done changed from 50 to 60
If tried an unique username/token setting and it seems it's OK. The problem would be when we need a second pair of username/token :-/
WEBLATE_GITLAB_USERNAME: weblate WEBLATE_GITLAB_TOKEN: XXXXXXXXXXXXX
Moul, could you test it?
Updated by Joan Cervan i Andreu over 2 years ago
Maybe I could attempt to do it using GUI:
https://weblate.duniter.org/admin/configuration/setting/add/
Updated by Joan Cervan i Andreu over 2 years ago
Joan Cervan i Andreu va escriure (#note-7):
Maybe I could attempt to do it using GUI:
https://weblate.duniter.org/admin/configuration/setting/add/
I've opened an issue here: https://github.com/WeblateOrg/weblate/discussions/8128
And a second issue here:
Updated by Joan Cervan i Andreu almost 2 years ago
- Due date changed from 01 Oct 2022 to 27 Feb 2023
- % Done changed from 60 to 70
We should use these workarrounds:
Updated by Joan Cervan i Andreu 6 months ago
- Assignee changed from Moul G1 to Joan Cervan i Andreu
Update: it seems the Weblate issue has been fixed (I didn't test the fix)
Joan Cervan i Andreu va escriure (#note-8):
Joan Cervan i Andreu va escriure (#note-7):
Maybe I could attempt to do it using GUI:
https://weblate.duniter.org/admin/configuration/setting/add/
I've opened an issue here: https://github.com/WeblateOrg/weblate/discussions/8128
And a second issue here: