Skip to content

Commit e8caba8

Browse files
author
SUSE Update Bot
committed
🤖: Update build recipes from templates
1 parent e19bc16 commit e8caba8

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

‎spack-image/Dockerfile‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
#!UseOBSRepositories
1717
#!ExclusiveArch: aarch64 x86_64
18-
#!BuildTag: bci/spack:0.23.0-%RELEASE%
19-
#!BuildTag: bci/spack:0.23.0
18+
#!BuildTag: bci/spack:%%spack_version%%-%RELEASE%
19+
#!BuildTag: bci/spack:%%spack_version%%
2020
#!BuildTag: bci/spack:0.23
2121
#!BuildName: bci-spack
2222
#!BuildVersion: 15.7.0.23
@@ -32,13 +32,13 @@ RUN set -euo pipefail; \
3232
LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions"
3333
LABEL org.opencontainers.image.title="SLE BCI Spack development"
3434
LABEL org.opencontainers.image.description="Spack development container for building containerized HPC solution stacks, based on the SLE Base Container Image."
35-
LABEL org.opencontainers.image.version="0.23.0"
35+
LABEL org.opencontainers.image.version="%%spack_version%%"
3636
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
3737
LABEL org.opencontainers.image.created="%BUILDTIME%"
3838
LABEL org.opencontainers.image.vendor="SUSE LLC"
3939
LABEL org.opencontainers.image.source="%SOURCEURL%"
40-
LABEL org.opencontainers.image.ref.name="0.23.0-%RELEASE%"
41-
LABEL org.opensuse.reference="registry.suse.com/bci/spack:0.23.0-%RELEASE%"
40+
LABEL org.opencontainers.image.ref.name="%%spack_version%%-%RELEASE%"
41+
LABEL org.opensuse.reference="registry.suse.com/bci/spack:%%spack_version%%-%RELEASE%"
4242
LABEL org.openbuildservice.disturl="%DISTURL%"
4343
LABEL com.suse.supportlevel="techpreview"
4444
LABEL com.suse.supportlevel.until="2031-07-31"
@@ -71,7 +71,7 @@ RUN set -euo pipefail; mkdir -p /root/.spack \
7171
# sanity check that the version from the tag is equal to the version of spack that we expect
7272
RUN set -euo pipefail; \
7373
[ "$(rpm -q --qf '%{version}' spack | \
74-
cut -d '.' -f -3)" = "0.23.0" ]
74+
cut -d '.' -f -2)" = "0.23" ]
7575

7676
WORKDIR /root
7777
SHELL ["docker-shell"]

‎spack-image/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Spack 0.23.0 container image
1+
# Spack 0.23 container image
22
![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green)![Support Level](https://img.shields.io/badge/Support_Level-techpreview-blue)[![SLSA](https://img.shields.io/badge/SLSA_(v1.0)-Build_L3-Green)](https://documentation.suse.com/sbp/server-linux/html/SBP-SLSA4/)
33
[![Provenance: Available](https://img.shields.io/badge/Provenance-Available-Green)](https://documentation.suse.com/container/all/html/Container-guide/index.html#container-verify)
44

‎spack-image/_service‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<services>
22
<service mode="buildtime" name="docker_label_helper"/>
33
<service mode="buildtime" name="kiwi_metainfo_helper"/>
4+
<service mode="buildtime" name="replace_using_package_version">
5+
<param name="file">Dockerfile</param>
6+
<param name="regex">%%spack_version%%</param>
7+
<param name="package">spack</param>
8+
<param name="parse-version">patch</param>
9+
</service>
410
</services>

0 commit comments

Comments
 (0)