]> Untitled Git - lemmy-ui.git/commitdiff
Set up docker deploys. Fixes #4
authorDessalines <tyhou13@gmx.com>
Thu, 10 Sep 2020 19:49:33 +0000 (14:49 -0500)
committerDessalines <tyhou13@gmx.com>
Thu, 10 Sep 2020 19:49:33 +0000 (14:49 -0500)
Dockerfile
deploy.sh [new file with mode: 0755]

index c097ff35d0bb1e0d6c3eba6fae52c9bd74661c1d..5eb255a46440577b4dc88f236e70774ef966edd0 100644 (file)
@@ -15,7 +15,7 @@ COPY generate_translations.js \
   webpack.config.js \\r
   .babelrc \\r
   .\r
-COPY translations translations\r
+COPY lemmy-translations lemmy-translations\r
 COPY src src\r
 \r
 RUN yarn\r
diff --git a/deploy.sh b/deploy.sh
new file mode 100755 (executable)
index 0000000..9d50a48
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+new_tag="$1"
+
+sudo docker build . --tag dessalines/lemmy-isomorphic-ui:$new_tag
+sudo docker push dessalines/lemmy-isomorphic-ui:$new_tag
+
+git tag $new_tag
+git push origin $new_tag