btrfs-progs: ci: add helpers to update base images

Add convenience build scripts for updating all CI images.

    $ images-base-update
    $ images-build-all

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2022-01-18 14:29:55 +01:00
parent f691dce41d
commit aa2f0c3f38
2 changed files with 18 additions and 0 deletions

9
ci/images/images-base-update Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
# Update all base images from Dockefile
for dir in ci-*; do
echo "Update $dir"
cd "$dir"
docker pull `awk '/^FROM/ {print $$2}' < Dockerfile`
cd ..
done

9
ci/images/images-build-all Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
# Rebuild all docker images
for dir in ci-*; do
echo "Build $dir"
cd "$dir"
./docker-build
cd ..
done