Skip to content

Commit

Permalink
Merge pull request #1679 from SUSE/hide_authors
Browse files Browse the repository at this point in the history
Disable authors listing in appcollection containers
  • Loading branch information
dcermak authored Sep 17, 2024
2 parents c45cbfd + 0e66397 commit f75b28f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bci_build/package/appcollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ def __post_init__(self) -> None:
# Limit Appcollection stuff to aarch64 and x86_64
if not self.os_version.is_tumbleweed and not self.exclusive_arch:
self.exclusive_arch = [Arch.AARCH64, Arch.X86_64]
# Disable maintainer listing
self.maintainer = None
4 changes: 4 additions & 0 deletions src/bci_build/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@
COPY --from=builder /target /{% endif %}
# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix={{ image.labelprefix }}
{%- if image.maintainer %}
LABEL org.opencontainers.image.authors="{{ image.maintainer }}"
{%- endif %}
LABEL org.opencontainers.image.title="{{ image.title }}"
LABEL org.opencontainers.image.description="{{ image.description }}"
LABEL org.opencontainers.image.version="{{ image.oci_version }}"
Expand Down Expand Up @@ -125,7 +127,9 @@
{#- NOTE: eye sight chart: this has a closing element character '>' here: ----> -#} >
<labels>
<suse_label_helper:add_prefix prefix="{{ image.labelprefix }}">
{%- if image.maintainer %}
<label name="org.opencontainers.image.authors" value="{{ image.maintainer }}"/>
{%- endif %}
<label name="org.opencontainers.image.title" value="{{ image.title }}"/>
<label name="org.opencontainers.image.description" value="{{ image.description }}"/>
<label name="org.opencontainers.image.version" value="{{ image.oci_version }}"/>
Expand Down

0 comments on commit f75b28f

Please sign in to comment.