mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-17 09:25:50 +00:00
19 lines
339 B
Bash
Executable File
Vendored
19 lines
339 B
Bash
Executable File
Vendored
#!/bin/bash
|
|
set -e
|
|
|
|
BRANCH=$1
|
|
|
|
git checkout $BRANCH
|
|
|
|
export COMPOSE_DOCKER_CLI_BUILD=1
|
|
export DOCKER_BUILDKIT=1
|
|
|
|
# Rebuilding dev docker
|
|
sudo docker build ../../ -f . -t "dessalines/lemmy:$BRANCH"
|
|
sudo docker push "dessalines/lemmy:$BRANCH"
|
|
|
|
# Run the playbook
|
|
pushd ../../../lemmy-ansible
|
|
ansible-playbook -i test playbooks/site.yml
|
|
popd
|