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