aboutsummaryrefslogtreecommitdiff
path: root/test_with_podman.sh
blob: aaa8c57a70fd9f6645cb405f9091835ca3c57a6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
podman_dir="podman"
now="$(date -u +%s)"
for file in $podman_dir/*
do
    distro="$(printf "%s" "$file"|cut -d '.' -f 2)"
    build_log="$now-podman-$distro-build_log"
    printf "Building %s container..." "$distro"
    podman build -f $file -t arching-kaos-tools-$distro . >> $build_log 2>&1
    if [ $? -ne 0 ]
    then
        printf "\tFailed!\n"
    else
        printf "\tSuccess!\n"
    fi
done