mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-10 06:54:12 +00:00
Fixing test deploy.
This commit is contained in:
parent
567a9aa131
commit
b9aef5891f
2 changed files with 11 additions and 12 deletions
12
docker/dev/dev_deploy.sh
vendored
12
docker/dev/dev_deploy.sh
vendored
|
@ -1,12 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Building from the dev branch for dev servers
|
||||
git checkout dev
|
||||
|
||||
# Rebuilding dev docker
|
||||
docker-compose build
|
||||
docker tag dev_lemmy:latest dessalines/lemmy:dev
|
||||
docker push dessalines/lemmy:dev
|
||||
|
||||
# SSH and pull it
|
||||
ssh $LEMMY_USER@$LEMMY_HOST "cd ~/git/lemmy/docker/dev && docker pull dessalines/lemmy:dev && docker-compose up -d"
|
11
docker/dev/test_deploy.sh
vendored
Executable file
11
docker/dev/test_deploy.sh
vendored
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Rebuilding dev docker
|
||||
docker-compose build
|
||||
docker tag dev_lemmy:latest dessalines/lemmy:test
|
||||
docker push dessalines/lemmy:test
|
||||
|
||||
# Run the playbook
|
||||
pushd ../../../lemmy-ansible
|
||||
ansible-playbook -i test playbooks/site.yml --vault-password-file vault_pass
|
||||
popd
|
Loading…
Reference in a new issue