1
0
Go to file
Fabian Vogt 2e05118d34 Accepting request 900211 from home:jfkw:branches:Virtualization:WSL
- Provide various modified spellings of PRETTY_NAME useful for
  writing KIWI image definitions with reduced diff between SLE,
  Leap and Tumbleweed. DASHED satisfies the requirement that kiwi
  image names must not have spaces. The BEFORE_PAREN variations
  drop the release label in parentheses (SLE only) and can be used
  as a stable name for image registries and WSL app store
  submissions.
  * VENDOR
  * PRETTY_NAME_DASHED
  * PRETTY_NAME_BEFORE_PAREN
  * PRETTY_NAME_BEFORE_PAREN_DASHED
- Update README and service definition XML to reflect all variables
- Bump version to 0.3

- Bump version to 0.2

OBS-URL: https://build.opensuse.org/request/show/900211
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-kiwi_metainfo_helper?expand=0&rev=22
2021-06-21 11:24:12 +00:00
.gitattributes Accepting request 663684 from SUSE:SLE-15:Update 2019-01-09 10:39:18 +00:00
.gitignore Accepting request 663684 from SUSE:SLE-15:Update 2019-01-09 10:39:18 +00:00
kiwi_metainfo_helper Accepting request 900211 from home:jfkw:branches:Virtualization:WSL 2021-06-21 11:24:12 +00:00
kiwi_metainfo_helper.service Accepting request 900211 from home:jfkw:branches:Virtualization:WSL 2021-06-21 11:24:12 +00:00
obs-service-kiwi_metainfo_helper.changes Accepting request 900211 from home:jfkw:branches:Virtualization:WSL 2021-06-21 11:24:12 +00:00
obs-service-kiwi_metainfo_helper.spec Accepting request 900211 from home:jfkw:branches:Virtualization:WSL 2021-06-21 11:24:12 +00:00
README Accepting request 900211 from home:jfkw:branches:Virtualization:WSL 2021-06-21 11:24:12 +00:00

obs-service-kiwi_metainfo_helper
================================

This service can be enabled to run during buildtime, when it will edit the
build recipe (.kiwi, Dockerfile, Chart.yaml) to replace placeholders with
build-specific metainfo.

| Placeholder                          | Value                                          | Example                                                                                        |
|--------------------------------------|----------------------------------------------- |------------------------------------------------------------------------------------------------|
| %DISTURL%                            | The OBS dist url                               | obs://build.suse.de/SUSE:SLE-15:Update:CR/images/2951b67133dd6384cacb28203174e030-sles15-image |
| %RELEASE%                            | The OBS release number (<cicnt\>.<bldcnt\>)    | 4.2                                                                                            |
| %BUILDTIME%                          | $(date --utc +%FT%T.%NZ)                       | 2018-10-30T09:19:02.074934628Z                                                                 |
| %OS_VERSION_ID%                      | VERSION_ID in the os-release file              | 15                                                                                             |
| %OS_VERSION_ID_SP%                   | Like VERSION_ID, but with SP (SLE only)        | 15.0                                                                                           |
| %OS_PRETTY_NAME%                     | PRETTY_NAME in the os-release file             | SUSE Linux Enterprise Server 15 SP3 (Snapshot16)                                               |
| %OS_VENDOR%                          | PRETTY_NAME up to first space character        | SUSE                                                                                           |
| %OS_PRETTY_NAME_DASHED%              | PRETTY_NAME with dashes in place of spaces     | SUSE-Linux-Enterprise-Server-15-SP3-Snapshot-16                                                |
| %OS_PRETTY_NAME_BEFORE_PAREN%        | PRETTY_NAME up to the first open parentheses   | SUSE Linux Enterprise Server 15 SP3                                                            |
| %OS_PRETTY_NAME_BEFORE_PAREN_DASHED% | PRETTY_NAME up to first open paren with dashes | SUSE-Linux-Enterprise-Server-15-SP3                                                            |