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/build_image.run

20 lines
456 B

#!/bin/bash -ex
if [ ! -d {{ laminar_home }}/repos/${image} ]
then
git clone {{ repos_url }}/${image}.git {{ laminar_home }}/repos/${image}
fi
cd {{ laminar_home }}/repos/${image}
git pull
for commit in `git log --format=%H`
do
git verify-commit $commit || exit 1
done
docker build . -t ${image}
docker tag ${image} {{ registry_domain }}/${image}
docker tag ${image} {{ registry }}/${image}
docker push {{ registry }}/${image}
update_images ${image}