Set up docker deploys. Fixes #4

This commit is contained in:
Dessalines 2020-09-10 14:49:33 -05:00
parent edcffbbf4b
commit 1f4f912efa
2 changed files with 10 additions and 1 deletions

View file

@ -15,7 +15,7 @@ COPY generate_translations.js \
webpack.config.js \ webpack.config.js \
.babelrc \ .babelrc \
. .
COPY translations translations COPY lemmy-translations lemmy-translations
COPY src src COPY src src
RUN yarn RUN yarn

9
deploy.sh Executable file
View file

@ -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