From: Dessalines Date: Thu, 10 Sep 2020 19:49:33 +0000 (-0500) Subject: Set up docker deploys. Fixes #4 X-Git-Url: http://these/git/%7B%60/feeds/front/static/%7BpictrsAvatarThumbnail%28this.state.siteRes.site.icon%29%7D?a=commitdiff_plain;h=1f4f912efa14222c81978adf4fa324d4c5b53798;p=lemmy-ui.git Set up docker deploys. Fixes #4 --- 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