|
|
|
@ -6,12 +6,15 @@ new_tag="$1"
|
|
|
|
|
git tag $new_tag
|
|
|
|
|
|
|
|
|
|
# Setting the version on the front end
|
|
|
|
|
cd ../../
|
|
|
|
|
echo "export let version: string = '$(git describe --tags)';" > "ui/src/version.ts"
|
|
|
|
|
git add "ui/src/version.ts"
|
|
|
|
|
# Setting the version on the backend
|
|
|
|
|
echo "pub const VERSION: &'static str = \"$(git describe --tags)\";" > "server/src/version.rs"
|
|
|
|
|
git add "server/src/version.rs"
|
|
|
|
|
|
|
|
|
|
cd docker/dev
|
|
|
|
|
|
|
|
|
|
# Changing the docker-compose prod
|
|
|
|
|
sed -i "s/dessalines\/lemmy:.*/dessalines\/lemmy:$new_tag/" ../prod/docker-compose.yml
|
|
|
|
|
git add ../prod/docker-compose.yml
|
|
|
|
|