%OS_VERSION% in containerfile snippets?

Is there a way to use the release version in a containerfile snippet?

For example:

modules:
  - type: containerfile
    snippets:
      - COPY --from=ghcr.io/ublue-os/akmods:main-41 /rpms/ /tmp/rpms
      - RUN find /tmp/rpms
      - RUN rpm -q ublue-os-akmods-addons || rpm-ostree install /tmp/rpms/ublue-os/ublue-os-akmods*.rpm


instead of a specific release, I want something like:

modules:
  - type: containerfile
    snippets:
      - COPY --from=ghcr.io/ublue-os/akmods:main-%%OS_RELEASE%% /rpms/ /tmp/rpms
      - RUN find /tmp/rpms
      - RUN rpm -q ublue-os-akmods-addons || rpm-ostree install /tmp/rpms/ublue-os/ublue-os-akmods*.rpm
Was this page helpful?