Skip to content

Commit b788f1d

Browse files
committed
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 <[email protected]>
1 parent b8f31fa commit b788f1d

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

ci/images/images-base-update

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
3+
# Update all base images from Dockefile
4+
for dir in ci-*; do
5+
echo "Update $dir"
6+
cd "$dir"
7+
docker pull `awk '/^FROM/ {print $$2}' < Dockerfile`
8+
cd ..
9+
done

ci/images/images-build-all

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
3+
# Rebuild all docker images
4+
for dir in ci-*; do
5+
echo "Build $dir"
6+
cd "$dir"
7+
./docker-build
8+
cd ..
9+
done

0 commit comments

Comments
 (0)