Skip to content

Commit b7d9a5b

Browse files
maia-iyermrsabath
andauthored
Fixed image labels for UBI image (#308)
* 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>
1 parent 1f28fc4 commit b7d9a5b

File tree

4 files changed

+67
-4
lines changed

4 files changed

+67
-4
lines changed

Dockerfile.backend-container

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,24 @@ ARG version
1313
ARG github_sha
1414
LABEL org.opencontainers.image.description="Tornjak backend ($version): https://github.com/spiffe/tornjak/releases/tag/$version" \
1515
org.opencontainers.image.source="https://github.com/spiffe/tornjak" \
16-
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
16+
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
17+
18+
# Additional labels
19+
LABEL architecture="amd64" \
20+
build-date="" \
21+
description="Tornjak Backend" \
22+
io.k8s.description="Tornjak Backend" \
23+
io.k8s.display-name="tornjak-backend" \
24+
maintainer="" \
25+
name="spiffe/tornjak-backend" \
26+
release="$version" \
27+
summary="Tornjak backend image" \
28+
url="" \
29+
vcs-ref="" \
30+
vcs-type="" \
31+
vendor="" \
32+
version="$version"
33+
1734
# create env. variables with the build details
1835
ENV VERSION=$version
1936
ENV GITHUB_SHA=$github_sha

Dockerfile.backend-container.ubi

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,23 @@ ARG version
1313
ARG github_sha
1414
LABEL org.opencontainers.image.description="Tornjak backend ($version): https://github.com/spiffe/tornjak/releases/tag/$version" \
1515
org.opencontainers.image.source="https://github.com/spiffe/tornjak" \
16-
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
16+
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
17+
# replace UBI labels
18+
LABEL architecture="amd64" \
19+
build-date="" \
20+
description="Tornjak Backend" \
21+
io.k8s.description="Tornjak Backend" \
22+
io.k8s.display-name="tornjak-backend" \
23+
maintainer="" \
24+
name="spiffe/tornjak-backend" \
25+
release="$version" \
26+
summary="Tornjak backend UBI image" \
27+
url="" \
28+
vcs-ref="" \
29+
vcs-type="" \
30+
vendor="" \
31+
version="$version"
32+
1733
# create env. variables with the build details
1834
ENV VERSION=$version
1935
ENV GITHUB_SHA=$github_sha

Dockerfile.frontend-container

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,22 @@ ARG version
2828
ARG github_sha
2929
LABEL org.opencontainers.image.description="Tornjak frontend ($version): https://github.com/spiffe/tornjak/releases/tag/$version" \
3030
org.opencontainers.image.source="https://github.com/spiffe/tornjak" \
31-
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
31+
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
32+
# additional labels
33+
LABEL architecture="amd64" \
34+
build-date="" \
35+
description="Tornjak Frontend" \
36+
io.k8s.description="Tornjak Frontend" \
37+
io.k8s.display-name="tornjak-frontend" \
38+
maintainer="" \
39+
name="spiffe/tornjak-frontend" \
40+
release="$version" \
41+
summary="Tornjak frontend image" \
42+
url="" \
43+
vcs-ref="" \
44+
vcs-type="" \
45+
vendor="" \
46+
version="$version"
3247
# create env. variables with the build details
3348
ENV VERSION=$version
3449
ENV GITHUB_SHA=$github_sha

Dockerfile.frontend-container.ubi

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,22 @@ ARG version
3434
ARG github_sha
3535
LABEL org.opencontainers.image.description="Tornjak frontend ($version): https://github.com/spiffe/tornjak/releases/tag/$version" \
3636
org.opencontainers.image.source="https://github.com/spiffe/tornjak" \
37-
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
37+
org.opencontainers.image.documentation="https://github.com/spiffe/tornjak/tree/main/docs"
38+
# replace UBI labels
39+
LABEL architecture="amd64" \
40+
build-date="" \
41+
description="Tornjak Frontend" \
42+
io.k8s.description="Tornjak Frontend" \
43+
io.k8s.display-name="tornjak-frontend" \
44+
maintainer="" \
45+
name="spiffe/tornjak-frontend" \
46+
release="$version" \
47+
summary="Tornjak frontend UBI image" \
48+
url="" \
49+
vcs-ref="" \
50+
vcs-type="" \
51+
vendor="" \
52+
version="$version"
3853
# create env. variables with the build details
3954
ENV VERSION=$version
4055
ENV GITHUB_SHA=$github_sha

0 commit comments

Comments
 (0)