Update test_deploy.sh, supporting different branches
This commit is contained in:
parent
b56c1bd54c
commit
a8b80461b2
1 changed files with 11 additions and 6 deletions
17
docker/dev/test_deploy.sh
vendored
17
docker/dev/test_deploy.sh
vendored
|
@ -1,11 +1,16 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
BRANCH=$1
|
||||||
|
|
||||||
|
git checkout $BRANCH
|
||||||
|
cd ../../
|
||||||
|
|
||||||
# Rebuilding dev docker
|
# Rebuilding dev docker
|
||||||
docker-compose build
|
sudo docker build . -f "docker/dev/Dockerfile" -t "dessalines/lemmy:$BRANCH"
|
||||||
docker tag dev_lemmy:latest dessalines/lemmy:test
|
sudo docker push "dessalines/lemmy:$BRANCH"
|
||||||
docker push dessalines/lemmy:test
|
|
||||||
|
|
||||||
# Run the playbook
|
# Run the playbook
|
||||||
pushd ../../../lemmy-ansible
|
pushd ../lemmy-ansible
|
||||||
ansible-playbook -i test playbooks/site.yml --vault-password-file vault_pass
|
ansible-playbook -i test playbooks/site.yml
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Reference in a new issue