stagex/src/context.sh

11 lines
298 B
Bash
Raw Normal View History

2024-02-08 17:09:58 +00:00
#!/bin/bash
for each in $(find src/*/*/Containerfile); do
package=$(basename $(dirname ${each}))
digest_file=out/${package}/index.json
digest_line=""
if [ -e ${digest_file} ]; then
printf -- ' --build-context %s=oci-layout://./out/%s' "${package}" "${package}"
fi
done