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