From b15a97b2a5027f3dec0628d119a2af9ecc08f038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Mi=C5=A1en=C4=8D=C3=ADk?= Date: Tue, 1 Aug 2023 08:44:16 +0200 Subject: [PATCH 1/3] Add source label for renovatebot --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 224f1766..f6c87dc5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,7 @@ RUN make build FROM alpine:${ALPINE_VERSION} LABEL maintainer="jvolak@frinx.io" +LABEL org.opencontainers.image.source="https://github.com/FRINXio/krakend-ce" RUN apk add --no-cache ca-certificates tzdata curl && \ adduser -u 1000 -S -D -H krakend && \ From 88a12de7cd10b1adc75873174de5d0a137f50237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Mi=C5=A1en=C4=8D=C3=ADk?= Date: Tue, 1 Aug 2023 10:32:56 +0200 Subject: [PATCH 2/3] Update Dockerfile --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index f6c87dc5..d5630a10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,8 @@ RUN make build FROM alpine:${ALPINE_VERSION} +ARG git_commit=unspecified +LABEL git_commit="${git_commit}" LABEL maintainer="jvolak@frinx.io" LABEL org.opencontainers.image.source="https://github.com/FRINXio/krakend-ce" From 884dd2749f21f4839ddffa6bd14c81baaa78d392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Mi=C5=A1en=C4=8D=C3=ADk?= Date: Tue, 1 Aug 2023 11:08:12 +0200 Subject: [PATCH 3/3] Update Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 92dd6a31..c1e430ac 100644 --- a/Makefile +++ b/Makefile @@ -87,7 +87,7 @@ build_on_docker: docker-builder-linux build_docker_image: @make test_token_env - docker build --no-cache --pull --build-arg GOLANG_VERSION=${GOLANG_VERSION} --build-arg ALPINE_VERSION=${ALPINE_VERSION} --build-arg TOKEN=${TOKEN} -t frinx/krakend:${IMAGE_VERSION} . + docker build --no-cache --pull --build-arg GOLANG_VERSION=${GOLANG_VERSION} --build-arg ALPINE_VERSION=${ALPINE_VERSION} --build-arg TOKEN=${TOKEN} --build-arg git_commit=$(git rev-parse HEAD) -t frinx/krakend:${IMAGE_VERSION} . # Build the container using the Dockerfile (alpine) docker: