Project

General

Profile

Actions

Funcionalitat/Millora #1255

open

Add duniter gitlab user credentials

Added by Joan Cervan i Andreu over 2 years ago. Updated 6 months ago.

Status:
En Progrés
Priority:
Normal
Start date:
17 Sep 2022
Due date:
27 Feb 2023 (about 23 months late)
% Done:

70%

Estimated time:
Spent time:

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 :-)


Actions #1

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 ;-)

Actions #3

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
Actions #4

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
Actions #5

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
Actions #6

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?

Actions #7

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/

Actions #8

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:

https://github.com/WeblateOrg/docker-compose/issues/157

Actions #9

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
Actions #10

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:

https://github.com/WeblateOrg/docker-compose/issues/157

Actions

Also available in: Atom PDF