diff options
Diffstat (limited to 'contrib/ci')
-rwxr-xr-x | contrib/ci/ci.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/ci/ci.sh b/contrib/ci/ci.sh index 47c7a211..0719015b 100755 --- a/contrib/ci/ci.sh +++ b/contrib/ci/ci.sh @@ -1,16 +1,16 @@ #!/bin/bash set -exvuo pipefail -# Use podman if available, otherwise use docker. -# Fails if neither is found in PATH -OCI_RUNTIME=$(which podman || which docker) +# Requires podman +# Fails if not found in PATH +OCI_RUNTIME=$(which podman) REPO_NAME=$(basename "${PWD}") JOB_NAME="${1}" -JOB_CONTAINER=$((grep CONTAINER_NAME contrib/ci/jobs/${JOB_NAME}/config.ini | cut -d' ' -f 3) || echo "${REPO_NAME}") JOB_ARCH=$((grep CONTAINER_ARCH contrib/ci/jobs/${JOB_NAME}/config.ini | cut -d' ' -f 3) || echo "${2:-amd64}") +JOB_CONTAINER=$((grep CONTAINER_NAME contrib/ci/jobs/${JOB_NAME}/config.ini | cut -d' ' -f 3) || echo "localhost/${REPO_NAME}:${JOB_ARCH}") CONTAINER_BUILD=$((grep CONTAINER_BUILD contrib/ci/jobs/${JOB_NAME}/config.ini | cut -d' ' -f 3) || echo "True") -echo "${JOB_CONTAINER}" +echo "Image name: ${JOB_CONTAINER}" if [ "${CONTAINER_BUILD}" = "True" ] ; then "${OCI_RUNTIME}" build \ |