]> Untitled Git - lemmy.git/commitdiff
Fixing test deploy.
authorDessalines <tyhou13@gmx.com>
Tue, 14 Apr 2020 14:07:40 +0000 (10:07 -0400)
committerDessalines <tyhou13@gmx.com>
Tue, 14 Apr 2020 14:07:40 +0000 (10:07 -0400)
docker/dev/dev_deploy.sh [deleted file]
docker/dev/test_deploy.sh [new file with mode: 0755]

diff --git a/docker/dev/dev_deploy.sh b/docker/dev/dev_deploy.sh
deleted file mode 100755 (executable)
index ef41434..0000000
+++ /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 (executable)
index 0000000..1ae91f6
--- /dev/null
@@ -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