mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-27 00:29:04 -04:00
fix(ci): stamp version into daily docker images (#3291)
* fix(ci): stamp version into daily docker images * fix after review
This commit is contained in:
1 parent
716922f76f
commit
b41d0c1040
2 files changed
+7
-1
No files matched your search
@@ -1906,6 +1906,9 @@ def dockerRelease(ctx, repo, build_type):
|
||||
"EDITION": "stable" if build_type == "production" else "rolling",
|
||||
}
|
||||
|
||||
if ctx.build.event != "tag":
|
||||
build_args["STRING"] = ctx.build.commit[:8]
|
||||
|
||||
# if no additional tag is given, the build-plugin adds latest
|
||||
hard_tag = "daily"
|
||||
if ctx.build.event == "tag":
|
||||
|
||||
@@ -11,7 +11,10 @@ RUN --mount=type=bind,target=/build,rw \
|
||||
--mount=type=cache,target=/go/pkg/mod \
|
||||
--mount=type=cache,target=/root/.cache \
|
||||
GOOS="${TARGETOS:-linux}" GOARCH="${TARGETARCH:-amd64}" ; \
|
||||
make -C ${SRCDIR:-.}/opencloud release-linux-docker-${TARGETARCH} ENABLE_VIPS=true DIST=/dist
|
||||
make -C ${SRCDIR:-.}/opencloud release-linux-docker-${TARGETARCH} \
|
||||
ENABLE_VIPS=true DIST=/dist \
|
||||
VERSION="${VERSION}" EDITION="${EDITION}" \
|
||||
${STRING:+STRING="${STRING}"}
|
||||
|
||||
FROM alpine:3.24
|
||||
ARG VERSION
|
||||
|
||||
Reference in new issue
Block a user