Projecte

General

Perfil

Actions

Funcionalitat/Millora #1255

obert

Add duniter gitlab user credentials

Afegit per Joan Cervan i Andreu fa més d'un any. Actualitzat fa més d'un any.

Estat:
En Progrés
Prioritat:
Normal
Assignat a:
Inici:
17 Set 2022
Data de venciment:
27 Feb 2023 (aproximadament 14 mesos tard)
% realitzat:

70%

Temps previst:

Descripció

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

Actualitzat per Joan Cervan i Andreu fa més d'un any

  • Estat ha canviat de Nou a En Progrés
  • % realitzat ha canviat de 0 a 10

ping Moul G1 ;-)

Actions #2

Actualitzat per Joan Cervan i Andreu fa més d'un any

  • % realitzat ha canviat de 10 a 20
Actions #3

Actualitzat per Joan Cervan i Andreu fa més d'un any

  • % realitzat ha canviat de 20 a 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

Actualitzat per Joan Cervan i Andreu fa més d'un any

  • % realitzat ha canviat de 30 a 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

Actualitzat per Joan Cervan i Andreu fa més d'un any

  • % realitzat ha canviat de 40 a 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

Actualitzat per Joan Cervan i Andreu fa més d'un any

  • Assignat a ha canviat de Joan Cervan i Andreu a Moul G1
  • % realitzat ha canviat de 50 a 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

Actualitzat per Joan Cervan i Andreu fa més d'un any

Maybe I could attempt to do it using GUI:

https://weblate.duniter.org/admin/configuration/setting/add/

Actions #8

Actualitzat per Joan Cervan i Andreu fa més d'un any

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

Actualitzat per Joan Cervan i Andreu fa més d'un any

  • Data de venciment ha canviat de 01 Oct 2022 a 27 Feb 2023
  • % realitzat ha canviat de 60 a 70
Actions

També disponible a: Atom PDF