ansible playbook to set up a laminar container Ci build. moved to: https://git.sindominio.net/sindominio/ansible_laminar
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible_laminar/update_images

12 lines
312 B

#!/bin/bash -e
base="{{ registry_domain }}/$1"
for image in `curl -s -X GET {{ registry }}/v2/_catalog | jq -r '.repositories[]'`
do
docker_from=`curl -s {{ repos_url }}/${image}/raw/branch/master/Dockerfile |grep FROM |awk '{ print $2 }'`
if [ "$base" = "$docker_from" ]
then
build_image $image
fi
done