Use global job for building docker image
Story: 2001694 Task: 24234 Change-Id: Ic84c66f239ae09e84eb76fb6a9385b7713876989 Depends-On: https://review.openstack.org/#/c/632087/
This commit is contained in:
parent
cde6b1c680
commit
e6b9af00ac
@ -155,6 +155,7 @@
|
||||
- monasca-tempest-python2-java-cassandra
|
||||
- monasca-tempest-python3-java-cassandra
|
||||
- monascalog-python3-tempest
|
||||
- docker-build-monasca-service
|
||||
- legacy-monasca-api-maven-build:
|
||||
voting: false
|
||||
gate:
|
||||
|
@ -44,6 +44,10 @@ set -eo pipefail # Exit the script if any statement returns error.
|
||||
# to provide it as in the following example:
|
||||
# $ ./build_image.sh master master refs/changes/19/595719/3
|
||||
|
||||
# Go to folder with Docker files.
|
||||
REAL_PATH=$(python -c "import os,sys; print(os.path.realpath('$0'))")
|
||||
cd "$(dirname "$REAL_PATH")/../docker/"
|
||||
|
||||
[ -z "$DOCKER_IMAGE" ] && \
|
||||
DOCKER_IMAGE=$(\grep DOCKER_IMAGE Dockerfile | cut -f2 -d"=")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user