Skip to content

Commit

Permalink
Fixed image labels for UBI image (#308)
Browse files Browse the repository at this point in the history
* Added labels

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

* Update Dockerfile.backend-container.ubi

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>

Co-authored-by: Mariusz Sabath <mrsabath@gmail.com>

---------

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>
Co-authored-by: Mariusz Sabath <mrsabath@gmail.com>
  • Loading branch information
maia-iyer and mrsabath committed Mar 20, 2024
1 parent 1309c47 commit 7f874da
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 4 deletions.
19 changes: 18 additions & 1 deletion Dockerfile.backend-container
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,24 @@ ARG version
ARG github_sha
LABEL org.opencontainers.image.description="Tornjak backend ($version): https://github.com/spiffe/tornjak/releases/tag/$version" \
org.opencontainers.image.source="https://github.com/spiffe/tornjak" \
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"

# Additional labels
LABEL architecture="amd64" \
build-date="" \
description="Tornjak Backend" \
io.k8s.description="Tornjak Backend" \
io.k8s.display-name="tornjak-backend" \
maintainer="" \
name="spiffe/tornjak-backend" \
release="$version" \
summary="Tornjak backend image" \
url="" \
vcs-ref="" \
vcs-type="" \
vendor="" \
version="$version"

# create env. variables with the build details
ENV VERSION=$version
ENV GITHUB_SHA=$github_sha
18 changes: 17 additions & 1 deletion Dockerfile.backend-container.ubi
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,23 @@ ARG version
ARG github_sha
LABEL org.opencontainers.image.description="Tornjak backend ($version): https://github.com/spiffe/tornjak/releases/tag/$version" \
org.opencontainers.image.source="https://github.com/spiffe/tornjak" \
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
# replace UBI labels
LABEL architecture="amd64" \
build-date="" \
description="Tornjak Backend" \
io.k8s.description="Tornjak Backend" \
io.k8s.display-name="tornjak-backend" \
maintainer="" \
name="spiffe/tornjak-backend" \
release="$version" \
summary="Tornjak backend UBI image" \
url="" \
vcs-ref="" \
vcs-type="" \
vendor="" \
version="$version"

# create env. variables with the build details
ENV VERSION=$version
ENV GITHUB_SHA=$github_sha
17 changes: 16 additions & 1 deletion Dockerfile.frontend-container
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,22 @@ ARG version
ARG github_sha
LABEL org.opencontainers.image.description="Tornjak frontend ($version): https://github.com/spiffe/tornjak/releases/tag/$version" \
org.opencontainers.image.source="https://github.com/spiffe/tornjak" \
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
# additional labels
LABEL architecture="amd64" \
build-date="" \
description="Tornjak Frontend" \
io.k8s.description="Tornjak Frontend" \
io.k8s.display-name="tornjak-frontend" \
maintainer="" \
name="spiffe/tornjak-frontend" \
release="$version" \
summary="Tornjak frontend image" \
url="" \
vcs-ref="" \
vcs-type="" \
vendor="" \
version="$version"
# create env. variables with the build details
ENV VERSION=$version
ENV GITHUB_SHA=$github_sha
17 changes: 16 additions & 1 deletion Dockerfile.frontend-container.ubi
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,22 @@ ARG version
ARG github_sha
LABEL org.opencontainers.image.description="Tornjak frontend ($version): https://github.com/spiffe/tornjak/releases/tag/$version" \
org.opencontainers.image.source="https://github.com/spiffe/tornjak" \
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
# replace UBI labels
LABEL architecture="amd64" \
build-date="" \
description="Tornjak Frontend" \
io.k8s.description="Tornjak Frontend" \
io.k8s.display-name="tornjak-frontend" \
maintainer="" \
name="spiffe/tornjak-frontend" \
release="$version" \
summary="Tornjak frontend UBI image" \
url="" \
vcs-ref="" \
vcs-type="" \
vendor="" \
version="$version"
# create env. variables with the build details
ENV VERSION=$version
ENV GITHUB_SHA=$github_sha

0 comments on commit 7f874da

Please sign in to comment.