Skip to content

Commit

Permalink
fix(ci): RHICOMPL-2094 temp use docker in CI
Browse files Browse the repository at this point in the history
Container image builds in CI are failing when using rootless podman.
Temporarily use docker, until we can resolve the CI environment to use
rootless podman.
  • Loading branch information
vkrizan committed Aug 3, 2021
1 parent 9fe338e commit 95d723d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deploy/build-deploy-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ backwards_compatibility_enabled() {
[ "$BACKWARDS_COMPATIBILITY" = true ]
}

is_ci_runner() {
[[ "$(hostname)" == "ci-"* ]]
}

get_7_chars_commit_hash() {
echo "$(git rev-parse --short=7 HEAD)"
}
Expand Down Expand Up @@ -131,7 +135,7 @@ container_engine_cmd() {

initialize_container_engine_cmd() {

if _check_command_is_present podman; then
if _check_command_is_present podman && ! is_ci_runner; then
CONTAINER_ENGINE_CMD='podman'
else
mkdir -p "$DOCKER_CONF"
Expand Down

0 comments on commit 95d723d

Please sign in to comment.