From 880433991e59dcea0cddd17dda0d536bc773e592 Mon Sep 17 00:00:00 2001 From: tasso94 <3015690+tasso94@users.noreply.github.com> Date: Tue, 18 Jul 2023 16:42:59 +0200 Subject: [PATCH] wip --- pipeline.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pipeline.sh b/pipeline.sh index 36c2dfc3..ffe517a9 100755 --- a/pipeline.sh +++ b/pipeline.sh @@ -3,13 +3,6 @@ EE=${EE:-false} SNAPSHOT=${SNAPSHOT:-false} -# evaluate if the version argument must be passed -if [ -z "$VERSION" ]; then - VERSION_ARGUMENT="" -else - VERSION_ARGUMENT="--build-arg VERSION=${VERSION}" -fi - IMAGE_NAME=camunda/camunda-bpm-platform:${DISTRO}-${PLATFORM} docker buildx build . \ @@ -20,7 +13,7 @@ docker buildx build . \ --build-arg USER=${NEXUS_USER} \ --build-arg PASSWORD=${NEXUS_PASS} \ --build-arg SNAPSHOT=${SNAPSHOT} \ - ${VERSION_ARGUMENT} \ + --build-arg VERSION=${VERSION} \ --cache-to type=gha,scope="$GITHUB_REF_NAME-$DISTRO-image" \ --cache-from type=gha,scope="$GITHUB_REF_NAME-$DISTRO-image" \ --load