Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-5484

Use github releases to save built assets

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Released
    • Icon: Must have Must have
    • 2.41.1
    • None
    • 3
    • CI/CD
    • Sprint #145, Sprint #146
    • iocaste, titan

      Currently master theme and blocks plugin repositories do not contain the built assets, and these are built in each pipeline that requires the packages. This leads to the same package being built on each NRO during deployment, adding a large amount of time and resources to each pipeline.

      It was set up this way because composer is limited to using the zip files that GitHub associates with a commit. But Github has an endpoint to add zip files to a release, so we could set up the pipeline of these repos to build the assets as a first job and upload the result to the associated github release. (API example)

      It does seem like composer doesn't support using these releases archives and would still use the regular zip archives. So could be we have to do a workaround to make it work with composer.  Another option is to use something else than composer.

      Options:

            pvincent Pieter Vincent (Inactive)
            pvincent Pieter Vincent (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: