kata-deploy: realpath INCLUDE_ROOTFS for Docker

Run `realpath` on `INCLUDE_ROOTFS` so it is not required to provide a
full path. This simplifies the required GitHub Actions workflow, as
GitHub's `env` cannot use shell expansions, as well as the usability
overall.

Signed-off-by: Jakob Naucke <jakob.naucke@ibm.com>
This commit is contained in:
Jakob Naucke 2021-12-06 17:55:50 +01:00
parent 637b519c5a
commit a2926324f5
No known key found for this signature in database
GPG Key ID: 45FA1C7D310C0EBE

View File

@ -41,7 +41,7 @@ docker run ${TTY_OPT} \
--env SKOPEO="${SKOPEO:-}" \
--env UMOCI="${UMOCI:-}" \
--env AA_KBC="${AA_KBC:-}" \
--env INCLUDE_ROOTFS="${INCLUDE_ROOTFS:-}" \
--env INCLUDE_ROOTFS="$(realpath "${INCLUDE_ROOTFS:-}" 2> /dev/null || true)" \
-v "${kata_dir}:${kata_dir}" \
--rm \
-w ${script_dir} \