You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2024/01/18 12:02:07 UTC

(camel-k) 01/02: fix(ci): workaround to avoid mac DNS problems

This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit eb9b03b2821cc9859bb7c6a243c0a68af0524c5f
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Wed Jan 17 18:38:09 2024 +0100

    fix(ci): workaround to avoid mac DNS problems
---
 .github/actions/kamel-build-binary/build-binary.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.github/actions/kamel-build-binary/build-binary.sh b/.github/actions/kamel-build-binary/build-binary.sh
index bd80a1799..fc90e183b 100755
--- a/.github/actions/kamel-build-binary/build-binary.sh
+++ b/.github/actions/kamel-build-binary/build-binary.sh
@@ -68,6 +68,12 @@ if [ -n "${REGISTRY_PUSH_HOST}" ]; then
   # for docker to push the image.
   #
   export CUSTOM_IMAGE=${REGISTRY_PUSH_HOST}/${IMAGE_NAMESPACE}/camel-k
+
+  # TODO remove as soon as the issue is fixed
+  # https://github.com/actions/runner-images/issues/8649
+  if [ "$RUNNER_OS" == "macOS" ]; then
+    export CUSTOM_IMAGE="127.0.0.1:5000/${IMAGE_NAMESPACE}/camel-k"
+  fi
 fi
 
 if [ -n "${DEBUG_USE_EXISTING_IMAGE}" ] && [ -n "${CUSTOM_IMAGE}" ]; then