Skip to content

Commit

Permalink
use podman in ci
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Huber <[email protected]>
  • Loading branch information
maxhbr committed Mar 14, 2024
1 parent 9f4da2f commit 76bc055
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docker-add-data-to-img.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@ datadir="$1"
oldtag="$2"
newtag="$3"

docker="docker"
if command -v "podman" &> /dev/null; then
>&2 echo "use podman"
docker="podman"
fi

cd $datadir

cat <<EOF | docker build --tag "$newtag" -f - .

cat <<EOF | $docker build --tag "$newtag" -f - .
FROM $oldtag
LABEL org.opencontainers.image.source="https://github.com/maxhbr/ldbcollector"
ADD . /ldbcollector/data
Expand Down

0 comments on commit 76bc055

Please sign in to comment.