Skip to content

Instantly share code, notes, and snippets.

@olblak
Created March 27, 2024 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olblak/d2c7e1b56ccf11aca184dcda248ef4d5 to your computer and use it in GitHub Desktop.
Save olblak/d2c7e1b56ccf11aca184dcda248ef4d5 to your computer and use it in GitHub Desktop.
Get latest unifi-controller with Updatecli
name: Get latest unifi controller version
sources:
unifi:
name: Get latest unifi version
kind: xml
spec:
# Using the UniFi Network Application RSS
file: https://community.ui.com/rss/releases/UniFi%20Network%20Application/e6712595-81bb-4829-8e42-9e2630fabcfe
path: "/rss/channel/item[1]/title"
transformers:
- findsubmatch:
pattern: "([0-9]+\\.[0-9]+\\.[0-9]+)"
captureindex: 1
targets:
dockerfile:
name: 'deps: bump unifi-controller version to {{ source "unifi"}}'
kind: dockerfile
spec:
file: Dockerfile
instruction:
keyword: ARG
matcher: "UNIFI_CONTROLLER_VERSION"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment