Compare commits

..

1 Commits

Author SHA1 Message Date
Michael Barz
cbafb09374 fix: hand over version to docker build 2025-07-10 19:37:14 +02:00
2 changed files with 5 additions and 5 deletions

View File

@@ -1539,10 +1539,10 @@ def dockerReleases(ctx):
return pipelines
def dockerRelease(ctx, repo, build_type):
build_args = {
"REVISION": "%s" % ctx.build.commit,
"VERSION": "%s" % (ctx.build.ref.replace("refs/tags/", "") if ctx.build.event == "tag" else "daily"),
}
build_args = [
"REVISION=%s" % ctx.build.commit,
"VERSION=%s" % (ctx.build.ref.replace("refs/tags/", "") if ctx.build.event == "tag" else "daily"),
]
depends_on = getPipelineNames(getGoBinForTesting(ctx))

View File

@@ -9,7 +9,7 @@ RUN apk add bash make git curl gcc musl-dev libc-dev binutils-gold inotify-tools
COPY ../ /opencloud/
WORKDIR /opencloud
RUN GOOS="${TARGETOS:-linux}" GOARCH="${TARGETARCH:-amd64}" ; \
RUN GOOS="${TARGETOS:-linux}" GOARCH="${TARGETARCH:-amd64}" VERSION="${VERSION:-daily}" ; \
make -C opencloud release-linux-docker-${TARGETARCH} ENABLE_VIPS=true
FROM alpine:3.20