linuxkit/test/cases/000_build/031_fixed_build_args/test.sh
Avi Deitcher de13ee521d include source repo, revision and go package version as build-args
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2023-06-08 18:24:25 +03:00

19 lines
418 B
Bash
Executable File

#!/bin/sh
# SUMMARY: Check that the build-args are correctly passed to Dockerfiles
# LABELS:
# REPEAT:
set -ex
# Source libraries. Uncomment if needed/defined
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
# Test code goes here
echo Linuxkit is "$(which linuxkit)"
RESULT="$(2>&1 linuxkit pkg build --force . | grep 'Build-arg test' || echo)"
echo RESULT="${RESULT}"
echo "${RESULT}" | grep -v "FAILED"
exit 0