Skip to content

[FEAT] Use Ubiquiti API for CI trigger #145

@matthewprenger

Description

@matthewprenger

Is this a new feature request?

  • I have searched the existing issues

Wanted change

Ubiquiti takes several days to weeks to update their Debian repository, which results in new container builds being delayed as well since this project uses it for triggering updates . The API listed below is the same one that the consoles use and gets updated much quicker. Using it would allow for quicker container builds.
https://fw-update.ubnt.com/api/firmware-latest?filter=eq~~product~~unifi-controller&filter=eq~~channel~~release

{
  "_embedded": {
    "firmware": [
      {
        "channel": "release",
        "created": "2025-04-25T15:06:03Z",
        "file_size": 138644450,
        "id": "9fa3e4ad-15c8-4da5-9364-da645c1a329c",
        "md5": "08388299dc8e7ddeed593f3118e24b67",
        "sha256_checksum": "95fd43f255c21b7f9ca81088f3326fa6be84c2c412ce3f0681243d00fdf12559",
        "platform": "debian",
        "product": "unifi-controller",
        "updated": "2025-04-25T15:06:07Z",
        "version": "v9.1.120+atag-9.1.120-29197",
        "version_major": 9,
        "version_minor": 1,
        "version_patch": 120,
        "version_build": "atag-9.1.120-29197",
        "probability_computed": 0,
        "_links": {
          "self": {
            "href": "https://fw-update.ui.com/api/firmware/9fa3e4ad-15c8-4da5-9364-da645c1a329c"
          },
          "upload": [
            {
              "name": "data",
              "href": "https://fw-update.ui.com/api/firmware/9fa3e4ad-15c8-4da5-9364-da645c1a329c/data"
            },
            {
              "name": "changelog",
              "href": "https://fw-update.ui.com/api/firmware/9fa3e4ad-15c8-4da5-9364-da645c1a329c/changelog"
            }
          ],
          "data": {
            "href": "https://fw-download.ubnt.com/data/unifi-controller/0934-debian-9.1.120-9fa3e4ad-15c8-4da5-9364-da645c1a329c.deb"
          }
        }
      },
      {
        "channel": "release",
        "created": "2025-04-25T15:06:03Z",
        "file_size": 5174,
        "id": "5d10e185-1621-424e-b93b-d219c83b73cb",
        "md5": "601df32736f41e40a80a3e472450a3e1",
        "sha256_checksum": "1791685039ea795970bcc7a61eec854058e3e6fc13c52770e31e20f3beb622eb",
        "platform": "document",
        "product": "unifi-controller",
        "updated": "2025-04-25T15:06:04Z",
        "version": "v9.1.120+atag-9.1.120-29197",
        "version_major": 9,
        "version_minor": 1,
        "version_patch": 120,
        "version_build": "atag-9.1.120-29197",
        "probability_computed": 0,
        "_links": {
          "self": {
            "href": "https://fw-update.ui.com/api/firmware/5d10e185-1621-424e-b93b-d219c83b73cb"
          },
          "upload": [
            {
              "name": "data",
              "href": "https://fw-update.ui.com/api/firmware/5d10e185-1621-424e-b93b-d219c83b73cb/data"
            },
            {
              "name": "changelog",
              "href": "https://fw-update.ui.com/api/firmware/5d10e185-1621-424e-b93b-d219c83b73cb/changelog"
            }
          ],
          "data": {
            "href": "https://fw-download.ubnt.com/data/unifi-controller/4f9e-document-9.1.120-5d10e185-1621-424e-b93b-d219c83b73cb"
          }
        }
      },
      {
        "channel": "release",
        "created": "2025-04-25T15:06:04Z",
        "file_size": 219394707,
        "id": "e9cecb1c-147c-49ed-8221-503b27ef0166",
        "md5": "9c8c77f1cf42c66411fb0f9e44f1b240",
        "sha256_checksum": "5becfe3bdfc752dc5fed69272667d2426b617cc381a3b6bc4daa177d7f1c320a",
        "platform": "macos",
        "product": "unifi-controller",
        "updated": "2025-04-25T15:06:18Z",
        "version": "v9.1.120+atag-9.1.120-29197",
        "version_major": 9,
        "version_minor": 1,
        "version_patch": 120,
        "version_build": "atag-9.1.120-29197",
        "probability_computed": 0,
        "_links": {
          "self": {
            "href": "https://fw-update.ui.com/api/firmware/e9cecb1c-147c-49ed-8221-503b27ef0166"
          },
          "upload": [
            {
              "name": "data",
              "href": "https://fw-update.ui.com/api/firmware/e9cecb1c-147c-49ed-8221-503b27ef0166/data"
            },
            {
              "name": "changelog",
              "href": "https://fw-update.ui.com/api/firmware/e9cecb1c-147c-49ed-8221-503b27ef0166/changelog"
            }
          ],
          "data": {
            "href": "https://fw-download.ubnt.com/data/unifi-controller/6ed8-macos-9.1.120-e9cecb1c-147c-49ed-8221-503b27ef0166.dmg"
          }
        }
      },
      {
        "channel": "release",
        "created": "2025-04-25T15:06:03Z",
        "file_size": 154692869,
        "id": "01c2b585-c044-473c-85c4-a8b0453f6b86",
        "md5": "d73f3f5f3a6003fc13ca65f10a1fd187",
        "sha256_checksum": "09d0be3dbec62db50f6e56e4a8d6f200fd28c0b2777e54388581c253001e688d",
        "platform": "unix",
        "product": "unifi-controller",
        "updated": "2025-04-25T15:06:16Z",
        "version": "v9.1.120+atag-9.1.120-29197",
        "version_major": 9,
        "version_minor": 1,
        "version_patch": 120,
        "version_build": "atag-9.1.120-29197",
        "probability_computed": 0,
        "_links": {
          "self": {
            "href": "https://fw-update.ui.com/api/firmware/01c2b585-c044-473c-85c4-a8b0453f6b86"
          },
          "upload": [
            {
              "name": "data",
              "href": "https://fw-update.ui.com/api/firmware/01c2b585-c044-473c-85c4-a8b0453f6b86/data"
            },
            {
              "name": "changelog",
              "href": "https://fw-update.ui.com/api/firmware/01c2b585-c044-473c-85c4-a8b0453f6b86/changelog"
            }
          ],
          "data": {
            "href": "https://fw-download.ubnt.com/data/unifi-controller/f1db-unix-9.1.120-01c2b585-c044-473c-85c4-a8b0453f6b86.zip"
          }
        }
      },
      {
        "channel": "release",
        "created": "2025-04-25T15:06:03Z",
        "file_size": 206970720,
        "id": "fbdec434-cc36-4e82-acc6-bec3c848134c",
        "md5": "cc6e091b6407c206839b6aa4afe169e4",
        "sha256_checksum": "5d0b71a5e67a382ce76e8fa4c657506c817e7bf40df6bcadcb68066ea5dcfb1a",
        "platform": "windows",
        "product": "unifi-controller",
        "updated": "2025-04-25T15:06:18Z",
        "version": "v9.1.120+atag-9.1.120-29197",
        "version_major": 9,
        "version_minor": 1,
        "version_patch": 120,
        "version_build": "atag-9.1.120-29197",
        "probability_computed": 0,
        "_links": {
          "self": {
            "href": "https://fw-update.ui.com/api/firmware/fbdec434-cc36-4e82-acc6-bec3c848134c"
          },
          "upload": [
            {
              "name": "data",
              "href": "https://fw-update.ui.com/api/firmware/fbdec434-cc36-4e82-acc6-bec3c848134c/data"
            },
            {
              "name": "changelog",
              "href": "https://fw-update.ui.com/api/firmware/fbdec434-cc36-4e82-acc6-bec3c848134c/changelog"
            }
          ],
          "data": {
            "href": "https://fw-download.ubnt.com/data/unifi-controller/4ec2-windows-9.1.120-fbdec434-cc36-4e82-acc6-bec3c848134c.exe"
          }
        }
      }
    ]
  },
  "_links": {
    "self": {
      "href": "https://fw-update.ui.com/api/firmware-latest"
    }
  }
}

Reason for change

Produce updated container images quicker.

Proposed code change

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions