mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-25 23:52:17 +00:00
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:
parent
a42b07077f
commit
335116e359
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Update all base images from Dockefile
|
# Update all base images from Dockefile
|
||||||
|
# Run before: images-build-all
|
||||||
|
|
||||||
for dir in ci-*; do
|
for dir in ci-*; do
|
||||||
echo "Update $dir"
|
echo "Update $dir"
|
||||||
cd "$dir"
|
cd "$dir"
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Rebuild all docker images
|
# Rebuild all docker images
|
||||||
|
# Run after: images-base-update
|
||||||
|
|
||||||
for dir in ci-*; do
|
for dir in ci-*; do
|
||||||
echo "Build $dir"
|
echo "Build $dir"
|
||||||
cd "$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
|
./docker-build
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
|
16
ci/images/images-push-all
Executable file
16
ci/images/images-push-all
Executable 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
|
Loading…
Reference in New Issue
Block a user