lemmy/docker/dev/test_deploy.sh

17 lines
300 B
Bash
Raw Permalink Normal View History

#!/bin/bash
set -e
BRANCH=$1
git checkout $BRANCH
cd ../../
2020-04-14 14:07:40 +00:00
# Rebuilding dev docker
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
pushd ../lemmy-ansible
ansible-playbook -i test playbooks/site.yml
2020-04-14 14:07:40 +00:00
popd