btrfs-progs: ci: update image management scripts

Add new script to upload updated images to my docker hub, add comments
in which order.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2024-01-26 05:51:27 +01:00
parent a42b07077f
commit 335116e359
3 changed files with 23 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#!/bin/sh
# Update all base images from Dockefile
# Run before: images-build-all
for dir in ci-*; do
echo "Update $dir"
cd "$dir"

View File

@ -1,9 +1,13 @@
#!/bin/sh
# Rebuild all docker images
# Run after: images-base-update
for dir in ci-*; do
echo "Build $dir"
cd "$dir"
# Do not build images with any stale branch snapshot, scripts ran
# locally will update that as needed
rm devel.tar.gz
./docker-build
cd ..
done

16
ci/images/images-push-all Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
# After pull and build push all images to the hub
# Run after: images-build-all
echo "You are not supposed to run this"
exit 1
hubname=kdave
tag=latest
for dir in ci-*; do
echo "Enter $dir"
dir="${dir,,}"
echo docker push "$hubname/$dir:$tag"
docker push "$hubname/$dir:$tag"
done