From d5606d77266e31daad11b8d084ed348253dfd628 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 25 Aug 2019 10:57:05 -0700 Subject: [PATCH] Upping version. --- docker/dev/deploy.sh | 24 ++++++++++++++++++++++++ docker/prod/docker-compose.yml | 2 +- ui/src/version.ts | 2 +- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100755 docker/dev/deploy.sh diff --git a/docker/dev/deploy.sh b/docker/dev/deploy.sh new file mode 100755 index 000000000..d94d725e8 --- /dev/null +++ b/docker/dev/deploy.sh @@ -0,0 +1,24 @@ +#!/bin/sh +git checkout master + +# Creating the new tag +new_tag="$1" +git tag $new_tag + +# Setting the version on the front end +pushd ../../ui/ +node set_version.js +git add src/version.ts +popd + +# Changing the docker-compose prod +sed -i "s/dessalines\/lemmy:.*/dessalines\/lemmy:$new_tag/" ../prod/docker-compose.yml +git add ../prod/docker-compose.yml + +# The commit +git commit -m"Upping version." + +# Rebuilding docker +./docker_update.sh +docker tag dev_lemmy:latest dessalines/lemmy:$new_tag +docker push dessalines/lemmy:$new_tag diff --git a/docker/prod/docker-compose.yml b/docker/prod/docker-compose.yml index 0e64c0518..48f9c794e 100644 --- a/docker/prod/docker-compose.yml +++ b/docker/prod/docker-compose.yml @@ -10,7 +10,7 @@ services: volumes: - lemmy_db:/var/lib/postgresql/data lemmy: - image: dessalines/lemmy:v0.0.8.2 + image: dessalines/lemmy:v0.0.8.3 ports: - "8536:8536" environment: diff --git a/ui/src/version.ts b/ui/src/version.ts index 85a7d4ac3..1108fa40c 100644 --- a/ui/src/version.ts +++ b/ui/src/version.ts @@ -1 +1 @@ -export let version: string = "v0.0.8.2-0-g6c8a84a"; \ No newline at end of file +export let version: string = "v0.0.8.3-0-g472f0ab"; \ No newline at end of file