Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Feb 2007
    Posts
    131

    Plugin hosting on GitLab

    I've just set up hosting of a new plugin on GitLab, and thought the recipe could be useful to other folks so was worth sharing.

    1. Store the source code of your plugin with Git.
    2. Grab my .gitlab-ci.yml and add it to your Git repository.
    3. Add a file called extensions.xml, which will serve as a template for your new plugin repository. Edit it appropriately for your plugin, but don't touch any of the parts that start with a $.
    4. Tag your latest release in Git with a version number and push it to GitLab.


    Every time you push a tag, GitLab CI/CD will generate a zip file for your package and host it at https://<your-username>.gitlab.io/<your-projectname>/<your-projectname>-<version>.zip. It will also generate a repository XML file for configuring into LMS, and host that at https://<your-username>.gitlab.io/<your-projectname>/extensions.xml.

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    2,996
    Very neat.
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

  3. #3
    Senior Member
    Join Date
    Nov 2005
    Location
    Berlin, DE
    Posts
    1,909
    If you're interested, take a look at the way we use jinja2 templating in this LMS docker image:

    https://gitlab.com/toertel/docker-im.../Dockerfile.j2

    Also, if there's any pre-reqs for your plugin, we could add those to our Docker image. :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •