diff options
author | David Sterba <dsterba@suse.com> | 2024-01-26 05:51:27 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-01-26 05:52:33 +0100 |
commit | 335116e35925af4d96cf0ac751b7c097b3725ff4 (patch) | |
tree | 43852aba03e5302475f98bc3fc41b87b82d9bbce | |
parent | a42b07077f3897a8bc4d8b993596e83e930d1d35 (diff) | |
download | btrfs-progs-335116e35925af4d96cf0ac751b7c097b3725ff4.tar.gz |
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>
-rwxr-xr-x | ci/images/images-base-update | 3 | ||||
-rwxr-xr-x | ci/images/images-build-all | 6 | ||||
-rwxr-xr-x | ci/images/images-push-all | 16 |
3 files changed, 23 insertions, 2 deletions
diff --git a/ci/images/images-base-update b/ci/images/images-base-update index 39914616..fc896c07 100755 --- a/ci/images/images-base-update +++ b/ci/images/images-base-update @@ -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" diff --git a/ci/images/images-build-all b/ci/images/images-build-all index e72bf863..727ad9b2 100755 --- a/ci/images/images-build-all +++ b/ci/images/images-build-all @@ -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 diff --git a/ci/images/images-push-all b/ci/images/images-push-all new file mode 100755 index 00000000..195b2315 --- /dev/null +++ b/ci/images/images-push-all @@ -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 |