-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): trigger maintenance snapshot version (#277)
related to camunda/camunda-bpm-platform#3515
- Loading branch information
Showing
2 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
#!/bin/bash | ||
|
||
#!/bin/bash -ex | ||
|
||
if [ -z "$SNAPSHOT" ]; then | ||
SNAPSHOT_ARGUMENT="" | ||
else | ||
SNAPSHOT_ARGUMENT="--build-arg SNAPSHOT=${SNAPSHOT}" | ||
fi | ||
|
||
if [ -z "$VERSION" ]; then | ||
VERSION_ARGUMENT="" | ||
else | ||
VERSION_ARGUMENT="--build-arg VERSION=${VERSION}" | ||
fi | ||
|
||
docker build . \ | ||
-t camunda/camunda-bpm-platform:${DISTRO} \ | ||
--build-arg DISTRO=${DISTRO} \ | ||
--build-arg EE=${EE} \ | ||
--build-arg USER=${NEXUS_USER} \ | ||
--build-arg PASSWORD=${NEXUS_PASS} | ||
--build-arg PASSWORD=${NEXUS_PASS} \ | ||
${VERSION_ARGUMENT} \ | ||
${SNAPSHOT_ARGUMENT} | ||
|
||
./test/test.sh |