ansible playbook to set up a laminar container Ci build
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

28 lines
523 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
verify_commits || exit 1
docker build . -t ${image}
if [ -f ./test ]
then
./test || exit 1
fi
docker tag ${image} {{ registry_domain }}/${image}
docker tag ${image} {{ registry }}/${image}
docker push {{ registry }}/${image}
if [ -f ./version ]
then
./version > {{ laminar_home }}/version/${image}
fi
update_images ${image}