diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3761ff0..1d91843 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,8 +35,16 @@ jobs: - name: Build container image run: | - podman build -t dailytrends:latest . - + if [ "$CONTAINER_CMD" = "podman" ]; then + podman build -t dailytrends:latest . + else + sudo docker build -t dailytrends:latest . + fi + - name: Test container image run: | - podman run --rm dailytrends:latest node --version + if [ "$CONTAINER_CMD" = "podman" ]; then + podman run --rm dailytrends:latest node --version + else + sudo docker run --rm dailytrends:latest node --version + fi \ No newline at end of file