Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tasso94 authored Jul 18, 2023
1 parent 8804339 commit 064cc66
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
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 . \
Expand All @@ -13,7 +20,7 @@ docker buildx build . \
--build-arg USER=${NEXUS_USER} \
--build-arg PASSWORD=${NEXUS_PASS} \
--build-arg SNAPSHOT=${SNAPSHOT} \
--build-arg VERSION=${VERSION} \
${VERSION_ARGUMENT} \
--cache-to type=gha,scope="$GITHUB_REF_NAME-$DISTRO-image" \
--cache-from type=gha,scope="$GITHUB_REF_NAME-$DISTRO-image" \
--load
Expand Down

0 comments on commit 064cc66

Please sign in to comment.