X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Feiffel%2Fscripts%2Feiffel-build-periodic.sh;h=7f9e6a3c69605e88bdc682dfdc06fbe53805ee34;hb=refs%2Fchanges%2F66%2F6266%2F4;hp=c989fa355544c570f9e12266d0d4e2b4eb03d740;hpb=59601746516f4f0f0d5b755422144aa53a089018;p=infra%2Fcicd.git diff --git a/jjb/eiffel/scripts/eiffel-build-periodic.sh b/jjb/eiffel/scripts/eiffel-build-periodic.sh index c989fa35..7f9e6a3c 100644 --- a/jjb/eiffel/scripts/eiffel-build-periodic.sh +++ b/jjb/eiffel/scripts/eiffel-build-periodic.sh @@ -25,14 +25,20 @@ set -o nounset # navigate to root of the git clone cd "$WORKSPACE" -# the image tagged with latest for the timebeing since we are building from the tip of master branch -IMAGE_TAG="latest" +# the Dockerfile to use for building the container image +IMAGE_DOCKERFILE="${IMAGE_DOCKERFILE:?IMAGE_DOCKERFILE is unset!}" + +# the name of the container image +IMAGE_NAME="${IMAGE_NAME:?IMAGE_NAME is unset!}" + +# the tag to apply to the container image +IMAGE_TAG="${IMAGE_TAG:-latest}" # set image name -IMAGE_NAME_TAG="$NORDIX_REGISTRY/$HARBOR_EIFFEL_PROJECT/$PROJECT:$IMAGE_TAG" +IMAGE_NAME_TAG="$NORDIX_REGISTRY/$HARBOR_EIFFEL_PROJECT/$IMAGE_NAME:$IMAGE_TAG" # set the build command so we can log it to console -PODMAN_BUILD_CMD="podman build --log-level $PODMAN_LOG_LEVEL --tag $IMAGE_NAME_TAG ." +PODMAN_BUILD_CMD="podman build --file $IMAGE_DOCKERFILE --log-level $PODMAN_LOG_LEVEL --tag $IMAGE_NAME_TAG ." echo "Info : Building the container image with the command" echo " $PODMAN_BUILD_CMD"