Commit a98941d9 authored by Marc BARUSSAUD's avatar Marc BARUSSAUD Committed by Clement Bois
Browse files

fix: python3 cannot be installed in all jobs by default

parent d839eec1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -828,6 +828,7 @@ stages:
      cp -f "$BUILDTOOL_HOME/.docker/config.json" "$BUILDTOOL_HOME/skopeo/.docker/src-config.json"
      # use a merged auth config for the destination image
      echo "${docker_release_config_json}" > "$BUILDTOOL_HOME/skopeo/.docker/release-only.json"
      maybe_install_python3
      merge_json "$BUILDTOOL_HOME/skopeo/.docker/src-config.json" "$BUILDTOOL_HOME/skopeo/.docker/release-only.json" > "$BUILDTOOL_HOME/skopeo/.docker/dest-config.json"
    fi

@@ -860,7 +861,6 @@ stages:
  function init_workspace() {
    install_custom_ca_certs
    maybe_install_awk
    maybe_install_python3
    unscope_variables
    eval_all_secrets
    configure_registries_auth
@@ -960,6 +960,7 @@ stages:
      return
    fi
    # check if tag matches pattern
    maybe_install_python3
    # shellcheck disable=SC2154
    matches=$(python3 -c "import re;print('match' if re.match(r'$DOCKER_RELEASE_EXTRA_TAGS_PATTERN', '$docker_tag') else '')")
    if [[ "$matches" ]]