mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-02 03:36:54 +08:00
Docker Provisioning: Remove the obsolete tag of test servers from Ubuntu
The SHA-1 tag of a server image is generated by the shared function (sha1tree) in testserver_util.sh. The sha1tree function sorts the files by the their SHA-1 and use the accumulated results as the TAG. So that, we can assign the same SHA-1 value to a server on all the platforms. Change-Id: If87ac72f7a9c5cdebef04977480d27b26a701b73 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
This commit is contained in:
@@ -55,11 +55,6 @@ source "$SERVER_PATH/settings.sh"
|
||||
for server in $testserver
|
||||
do
|
||||
context="$SERVER_PATH/$server"
|
||||
# obsolete - This one is still needed for CI. It will be removed later.
|
||||
sha1=$(find $context -type f -print0 | sort -z | xargs -r0 sha1sum | awk '{ print $1 }' | \
|
||||
sha1sum | awk '{ print $1 }')
|
||||
sudo docker build -t qt-test-server-$server:$sha1 $context
|
||||
|
||||
# Sort files by their SHA-1 and use the accumulated result as the TAG
|
||||
sudo docker build -t qt-test-server-$server:$(sha1tree $context) $context
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user