Upping version.

This commit is contained in:
Dessalines 2019-08-25 10:57:05 -07:00
parent aba55b2b03
commit e0c7432b0b
3 changed files with 26 additions and 2 deletions

24
docker/dev/deploy.sh vendored Executable file
View file

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

View file

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

2
ui/src/version.ts vendored
View file

@ -1 +1 @@
export let version: string = "v0.0.8.2-0-g6c8a84a";
export let version: string = "v0.0.8.3-0-g472f0ab";