From 1f4f912efa14222c81978adf4fa324d4c5b53798 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 10 Sep 2020 14:49:33 -0500 Subject: [PATCH] Set up docker deploys. Fixes #4 --- Dockerfile | 2 +- deploy.sh | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 deploy.sh diff --git a/Dockerfile b/Dockerfile index c097ff3..5eb255a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ COPY generate_translations.js \ webpack.config.js \ .babelrc \ . -COPY translations translations +COPY lemmy-translations lemmy-translations COPY src src RUN yarn diff --git a/deploy.sh b/deploy.sh new file mode 100755 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 -- 2.44.1