From b9aef5891fbb8191a0d9de5a40c23f7cfbd7c8f9 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 14 Apr 2020 10:07:40 -0400 Subject: [PATCH] Fixing test deploy. --- docker/dev/dev_deploy.sh | 12 ------------ docker/dev/test_deploy.sh | 11 +++++++++++ 2 files changed, 11 insertions(+), 12 deletions(-) delete mode 100755 docker/dev/dev_deploy.sh create mode 100755 docker/dev/test_deploy.sh diff --git a/docker/dev/dev_deploy.sh b/docker/dev/dev_deploy.sh deleted file mode 100755 index ef41434b3..000000000 --- a/docker/dev/dev_deploy.sh +++ /dev/null @@ -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" diff --git a/docker/dev/test_deploy.sh b/docker/dev/test_deploy.sh new file mode 100755 index 000000000..1ae91f654 --- /dev/null +++ b/docker/dev/test_deploy.sh @@ -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