2020-04-21 13:19:10 -04:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
BRANCH=$1
|
|
|
|
|
|
|
|
git checkout $BRANCH
|
2020-06-23 21:11:38 -04:00
|
|
|
|
2020-06-12 09:29:50 -04:00
|
|
|
export COMPOSE_DOCKER_CLI_BUILD=1
|
|
|
|
export DOCKER_BUILDKIT=1
|
2020-04-14 10:07:40 -04:00
|
|
|
|
|
|
|
# Rebuilding dev docker
|
2020-06-28 13:44:42 -04:00
|
|
|
sudo docker build ../../ -f . -t "dessalines/lemmy:$BRANCH"
|
2020-04-21 13:19:10 -04:00
|
|
|
sudo docker push "dessalines/lemmy:$BRANCH"
|
2020-04-14 10:07:40 -04:00
|
|
|
|
|
|
|
# Run the playbook
|
2020-06-28 13:44:42 -04:00
|
|
|
pushd ../../../lemmy-ansible
|
2020-04-21 13:19:10 -04:00
|
|
|
ansible-playbook -i test playbooks/site.yml
|
2020-04-14 10:07:40 -04:00
|
|
|
popd
|