7 third_semver=$(echo $new_tag | cut -d "." -f 3)
9 # Setting the version on the backend
11 echo "pub const VERSION: &str = \"$new_tag\";" > "crates/utils/src/version.rs"
12 git add "crates/utils/src/version.rs"
15 # Changing various references to the Lemmy version
16 sed -i "s/dessalines\/lemmy-ui:.*/dessalines\/lemmy-ui:$new_tag/" ../dev/docker-compose.yml
17 sed -i "s/dessalines\/lemmy-ui:.*/dessalines\/lemmy-ui:$new_tag/" ../federation/docker-compose.yml
18 git add ../dev/docker-compose.yml
19 git add ../federation/docker-compose.yml
21 # The ansible and docker installs should only update for non release-candidates
22 # IE, when the third semver is a number, not '2-rc'
23 if [ ! -z "${third_semver##*[!0-9]*}" ]; then
24 sed -i "s/dessalines\/lemmy:.*/dessalines\/lemmy:$new_tag/" ../prod/docker-compose.yml
25 git add ../prod/docker-compose.yml
27 # Setting the version for Ansible
29 echo $new_tag > "ansible/VERSION"
30 git add "ansible/VERSION"
35 git commit -m"Version $new_tag"
38 # export COMPOSE_DOCKER_CLI_BUILD=1
39 # export DOCKER_BUILDKIT=1
42 git push origin $new_tag
45 # Pushing to any ansible deploys
46 # cd ../../../lemmy-ansible || exit
47 # ansible-playbook -i prod playbooks/site.yml --vault-password-file vault_pass