Skip to content

Commit 2b0af90

Browse files
committed
fix system tests dockerhub failed identification
Signed-off-by: Alexandre Rulleau <[email protected]>
1 parent f1e12c8 commit 2b0af90

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.gitlab/dockerhub-login.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,25 @@ if ! command -v jq > /dev/null 2>&1; then
3737
export PATH="/tmp:${PATH}"
3838
fi
3939

40+
# Install unzip if not already available
41+
if ! command -v unzip > /dev/null 2>&1; then
42+
echo "Installing unzip..."
43+
if command -v apt-get > /dev/null 2>&1; then
44+
apt-get update -qq && apt-get install -y -qq unzip > /dev/null 2>&1 || {
45+
echo "Warning: Failed to install unzip. Skipping Docker Hub authentication." >&2
46+
exit 0
47+
}
48+
elif command -v apk > /dev/null 2>&1; then
49+
apk add --no-cache unzip > /dev/null 2>&1 || {
50+
echo "Warning: Failed to install unzip. Skipping Docker Hub authentication." >&2
51+
exit 0
52+
}
53+
else
54+
echo "Warning: No package manager found to install unzip. Skipping Docker Hub authentication." >&2
55+
exit 0
56+
fi
57+
fi
58+
4059
# Install Vault if not already available
4160
vault_cmd="vault"
4261
if ! command -v vault > /dev/null 2>&1; then

libdatadog

Submodule libdatadog updated 257 files

0 commit comments

Comments
 (0)