From 74b1e8154c726cf2f1501228b15d9cbc49d92e2b Mon Sep 17 00:00:00 2001 From: Thuan Vo Date: Wed, 10 Jul 2024 01:14:17 -0700 Subject: [PATCH] ci(tools): emulate docker with podman before image builds Signed-off-by: Thuan Vo --- .github/workflows/pr-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index 524e53445..93366ea48 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -95,6 +95,12 @@ jobs: curl -fsSL $OPENSUSE_UNOFFICIAL_LIBCONTAINERS_KEY_URL | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/devel_kubic_libcontainers_unstable.gpg > /dev/null sudo apt -y purge podman sudo apt update && sudo apt -y install podman + - name: Emulate docker with podman + run: | + mkdir -p $HOME/.bin + cat <(echo '#!/usr/bin/env bash') <(echo 'exec podman "$@"') > $HOME/.bin/docker + chmod +x $HOME/.bin/docker + echo "PATH=$HOME/.bin:$PATH" >> "$GITHUB_ENV" - name: Start Podman API run: systemctl --user enable --now podman.socket - name: Set DOCKER_HOST environment variable