Commit 2408e011 authored by Steffen Müthing's avatar Steffen Müthing

Fix building of downstream images that rely on extra_tag of upstream images

parent c9ba7a80
Pipeline #10241 passed with stages
in 16 minutes and 3 seconds
......@@ -213,6 +213,10 @@ echo "${manifest_digest}" > output/images/${filename}.new-digest
if [[ -v EXTRA_TAG ]] ; then
echo "extra_tag: ${EXTRA_TAG}" >> output/images/${filename}.image
extra_image="${untagged_image}:${EXTRA_TAG}"
extra_filename=$(sha256sum <<<"${extra_image}" | cut -d " " -f 1)
echo -e "skip: true\nimage: ${extra_image}\ntemp_image: ${temp_image}" > output/images/${extra_filename}.image
fi
rm -rf -- "${builddir}"
......@@ -52,6 +52,11 @@ if [[ "${mode}" == rollback && ! -d output/images ]] ; then
fi
for path in output/images/*.image ; do
if grep -q "skip: true" ${path} ; then
continue
fi
tagged_image="$(grep '^image: ' ${path} | cut -d ' ' -f 2)"
tagged_temp_image="$(grep '^temp_image: ' ${path} | cut -d ' ' -f 2)"
extra_tag="$(grep '^extra_tag: ' ${path} | cut -d ' ' -f 2)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment