7 third_semver=$(echo $new_tag | cut -d "." -f 3)
9 # The ansible and docker installs should only update for non release-candidates
10 # IE, when the third semver is a number, not '2-rc'
11 if [ ! -z "${third_semver##*[!0-9]*}" ]; then
13 sed -i "s/dessalines\/lemmy:.*/dessalines\/lemmy:$new_tag/" docker-compose.yml
14 sed -i "s/dessalines\/lemmy-ui:.*/dessalines\/lemmy-ui:$new_tag/" docker-compose.yml
15 sed -i "s/dessalines\/lemmy-ui:.*/dessalines\/lemmy-ui:$new_tag/" federation/docker-compose.yml
16 git add docker-compose.yml
17 git add federation/docker-compose.yml
20 # Setting the version for Ansible
21 pushd ../../lemmy-ansible
22 echo $new_tag > "VERSION"
24 git commit -m"Updating VERSION"
26 git push origin $new_tag
31 # Update crate versions
33 old_tag=$(grep version Cargo.toml | head -1 | cut -d'"' -f 2)
34 sed -i "s/{ version = \"=$old_tag\", path/{ version = \"=$new_tag\", path/g" Cargo.toml
35 sed -i "s/version = \"$old_tag\"/version = \"$new_tag\"/g" Cargo.toml
42 # Update the submodules
43 git submodule update --remote
44 git add crates/utils/translations
47 git commit -m"Version $new_tag"
50 # export COMPOSE_DOCKER_CLI_BUILD=1
51 # export DOCKER_BUILDKIT=1
54 git push origin $new_tag
57 # Pushing to any ansible deploys
58 # cd ../../../lemmy-ansible || exit
59 # ansible-playbook -i prod playbooks/site.yml --vault-password-file vault_pass