From aa2f0c3f3890e6c33b3d736ce6a3d96647c8fcd8 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 18 Jan 2022 14:29:55 +0100 Subject: [PATCH] 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 --- ci/images/images-base-update | 9 +++++++++ ci/images/images-build-all | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100755 ci/images/images-base-update create mode 100755 ci/images/images-build-all diff --git a/ci/images/images-base-update b/ci/images/images-base-update new file mode 100755 index 00000000..a8d58542 --- /dev/null +++ b/ci/images/images-base-update @@ -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 diff --git a/ci/images/images-build-all b/ci/images/images-build-all new file mode 100755 index 00000000..e72bf863 --- /dev/null +++ b/ci/images/images-build-all @@ -0,0 +1,9 @@ +#!/bin/sh + +# Rebuild all docker images +for dir in ci-*; do + echo "Build $dir" + cd "$dir" + ./docker-build + cd .. +done