Commit b8746009 authored by Baptiste Mesta's avatar Baptiste Mesta Committed by GitHub
Browse files

chore(docker): publish docker image directly when building version (#340)

If we directly publish the image to `bonitasoft-rd` quay organization,
it means we do not need to update the subscription DockeFile in order
to push those images to `bonitasoft` organization.

Adapt docker build file to be able to build other version than SNAPSHOT
using local file. Also drop the possibility to build sp image from an
external url. (no more sha256 needed)
parent 294b2db6
......@@ -82,9 +82,9 @@ if [[ "$BUILD_ARGS" != *"BONITA_VERSION="* ]]; then
BRANDING_VERSION=$(cat ../pom.xml | grep "<branding.version>" | sed -e 's/.*<branding.version>//g' -e 's/<\/branding.version>.*//g')
echo "Detected in pom file BONITA_VERSION=${BONITA_VERSION}"
echo "Detected in pom file BRANDING_VERSION=${BRANDING_VERSION}"
# If version is SNAPSHOT, we use it to build local image:
if [[ "$BONITA_VERSION" == *"-SNAPSHOT"* ]]; then
echo "SNAPSHOT version detected: sending SHA256 and BONITA_VERSION as extra parameters"
# Check if we build a docker image from a local tomcat build:
if ls ../tomcat/target/BonitaCommunity-*.zip 1> /dev/null 2>&1; then
echo "Building from local tomcat: sending SHA256 and BONITA_VERSION as extra parameters"
BONITA_SHA256=$(sha256sum ./files/BonitaCommunity-*.zip | cut -d' ' -f1)
BUILD_ARGS="${BUILD_ARGS} --build-arg BONITA_VERSION=${BONITA_VERSION}"
BUILD_ARGS="${BUILD_ARGS} --build-arg BONITA_SHA256=${BONITA_SHA256}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment