mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
Merge branch 'ebassi/ci-update-v41' into 'main'
ci: Update image See merge request GNOME/gtk!5528
This commit is contained in:
commit
94cde8d702
@ -26,7 +26,7 @@ variables:
|
|||||||
BACKEND_FLAGS: "-Dx11-backend=true -Dwayland-backend=true -Dbroadway-backend=true"
|
BACKEND_FLAGS: "-Dx11-backend=true -Dwayland-backend=true -Dbroadway-backend=true"
|
||||||
FEATURE_FLAGS: "-Dvulkan=enabled -Dcloudproviders=enabled -Ddemos=false -Dbuild-examples=false -Dbuild-tests=false -Dbuild-testsuite=true"
|
FEATURE_FLAGS: "-Dvulkan=enabled -Dcloudproviders=enabled -Ddemos=false -Dbuild-examples=false -Dbuild-tests=false -Dbuild-testsuite=true"
|
||||||
MESON_TEST_TIMEOUT_MULTIPLIER: 3
|
MESON_TEST_TIMEOUT_MULTIPLIER: 3
|
||||||
FEDORA_IMAGE: "registry.gitlab.gnome.org/gnome/gtk/fedora:v40"
|
FEDORA_IMAGE: "registry.gitlab.gnome.org/gnome/gtk/fedora:v41"
|
||||||
|
|
||||||
workflow:
|
workflow:
|
||||||
rules:
|
rules:
|
||||||
|
@ -82,6 +82,7 @@ RUN dnf -y install \
|
|||||||
python3-gobject \
|
python3-gobject \
|
||||||
python3-jinja2 \
|
python3-jinja2 \
|
||||||
python3-markdown \
|
python3-markdown \
|
||||||
|
python3-packaging \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
python3-pygments \
|
python3-pygments \
|
||||||
python3-typogrify \
|
python3-typogrify \
|
||||||
|
@ -23,6 +23,7 @@ push=0
|
|||||||
list=0
|
list=0
|
||||||
print_help=0
|
print_help=0
|
||||||
no_login=0
|
no_login=0
|
||||||
|
no_cache=0
|
||||||
|
|
||||||
while (($# > 0)); do
|
while (($# > 0)); do
|
||||||
case "${1%%=*}" in
|
case "${1%%=*}" in
|
||||||
@ -34,6 +35,7 @@ while (($# > 0)); do
|
|||||||
--base|-b) read_arg base "$@" || shift;;
|
--base|-b) read_arg base "$@" || shift;;
|
||||||
--version|-v) read_arg base_version "$@" || shift;;
|
--version|-v) read_arg base_version "$@" || shift;;
|
||||||
--no-login) no_login=1;;
|
--no-login) no_login=1;;
|
||||||
|
--no-cache) no_cache=1;;
|
||||||
*) echo -e "\e[1;31mERROR\e[0m: Unknown option '$1'"; exit 1;;
|
*) echo -e "\e[1;31mERROR\e[0m: Unknown option '$1'"; exit 1;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
@ -103,11 +105,21 @@ TAG="${REGISTRY}/gnome/gtk/${base}:${base_version}"
|
|||||||
|
|
||||||
if [ $build == 1 ]; then
|
if [ $build == 1 ]; then
|
||||||
echo -e "\e[1;32mBUILDING\e[0m: ${base} as ${TAG}"
|
echo -e "\e[1;32mBUILDING\e[0m: ${base} as ${TAG}"
|
||||||
${CMD} build \
|
if [ $no_cache == 0 ]; then
|
||||||
${format} \
|
${CMD} build \
|
||||||
--build-arg HOST_USER_ID="$UID" \
|
${format} \
|
||||||
--tag "${TAG}" \
|
--build-arg HOST_USER_ID="$UID" \
|
||||||
--file "${base}.Dockerfile" .
|
--tag "${TAG}" \
|
||||||
|
--file "${base}.Dockerfile" .
|
||||||
|
else
|
||||||
|
${CMD} build \
|
||||||
|
${format} \
|
||||||
|
--no-cache \
|
||||||
|
--build-arg HOST_USER_ID="$UID" \
|
||||||
|
--tag "${TAG}" \
|
||||||
|
--file "${base}.Dockerfile" .
|
||||||
|
fi
|
||||||
|
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user