]> Untitled Git - lemmy.git/commitdiff
Merge branch 'fix_ld_context' of https://yerbamate.ml/grishka/lemmy into grishka_fix_...
authorFelix Ableitner <me@nutomic.com>
Mon, 22 Mar 2021 12:08:07 +0000 (13:08 +0100)
committerFelix Ableitner <me@nutomic.com>
Mon, 22 Mar 2021 12:08:07 +0000 (13:08 +0100)
ansible/VERSION
docker/dev/docker-compose.yml
docker/federation/docker-compose.yml
docker/prod/deploy.sh
docker/prod/docker-compose.yml

index 69843acd572e3364de798dccf9a849743b3fdc70..7e310bae19960a3c44b9f9095f1f95b1e4c49ad9 100644 (file)
@@ -1 +1 @@
-0.10.0-rc.7
+0.9.9
index e4c2a10f3d70eb0444f569b2a79c99f9b2f6d772..b8dcac91ef355bf890c8d893ddb8b0a83873fd30 100644 (file)
@@ -17,7 +17,7 @@ services:
       - iframely
 
   lemmy-ui:
-    image: dessalines/lemmy-ui:0.10.0-rc.7
+    image: dessalines/lemmy-ui:0.9.9
     ports:
       - "1235:1234"
     restart: always
index b3a10c142f6f782745c4e6ca1a14f9151e9f9c59..03355aa49dd9e1c0554112c57d19dfacaf50c0e7 100644 (file)
@@ -29,7 +29,7 @@ services:
       - ./volumes/pictrs_alpha:/mnt
 
   lemmy-alpha-ui:
-    image: dessalines/lemmy-ui:0.10.0-rc.7
+    image: dessalines/lemmy-ui:0.9.9
     environment:
       - LEMMY_INTERNAL_HOST=lemmy-alpha:8541
       - LEMMY_EXTERNAL_HOST=localhost:8541
@@ -58,7 +58,7 @@ services:
       - ./volumes/postgres_alpha:/var/lib/postgresql/data
 
   lemmy-beta-ui:
-    image: dessalines/lemmy-ui:0.10.0-rc.7
+    image: dessalines/lemmy-ui:0.9.9
     environment:
       - LEMMY_INTERNAL_HOST=lemmy-beta:8551
       - LEMMY_EXTERNAL_HOST=localhost:8551
@@ -87,7 +87,7 @@ services:
       - ./volumes/postgres_beta:/var/lib/postgresql/data
 
   lemmy-gamma-ui:
-    image: dessalines/lemmy-ui:0.10.0-rc.7
+    image: dessalines/lemmy-ui:0.9.9
     environment:
       - LEMMY_INTERNAL_HOST=lemmy-gamma:8561
       - LEMMY_EXTERNAL_HOST=localhost:8561
@@ -117,7 +117,7 @@ services:
 
   # An instance with only an allowlist for beta
   lemmy-delta-ui:
-    image: dessalines/lemmy-ui:0.10.0-rc.7
+    image: dessalines/lemmy-ui:0.9.9
     environment:
       - LEMMY_INTERNAL_HOST=lemmy-delta:8571
       - LEMMY_EXTERNAL_HOST=localhost:8571
@@ -147,7 +147,7 @@ services:
 
   # An instance who has a blocklist, with lemmy-alpha blocked
   lemmy-epsilon-ui:
-    image: dessalines/lemmy-ui:0.10.0-rc.7
+    image: dessalines/lemmy-ui:0.9.9
     environment:
       - LEMMY_INTERNAL_HOST=lemmy-epsilon:8581
       - LEMMY_EXTERNAL_HOST=localhost:8581
index c54e4ac6bd1c4b6829434492dd621eb33f10e417..bd99fdb09ced98db2b4b2ff58faa89c52459517d 100755 (executable)
@@ -4,29 +4,33 @@ set -e
 
 # Creating the new tag
 new_tag="$1"
-#third_semver=$(echo $new_tag | cut -d "." -f 3)
+third_semver=$(echo $new_tag | cut -d "." -f 3)
 
-# Setting the version on the front end
-cd ../../
 # Setting the version on the backend
+pushd ../../
 echo "pub const VERSION: &str = \"$new_tag\";" > "crates/utils/src/version.rs"
 git add "crates/utils/src/version.rs"
-# Setting the version for Ansible
-echo $new_tag > "ansible/VERSION"
-git add "ansible/VERSION"
-
-cd docker/prod || exit
+popd
 
 # Changing various references to the Lemmy version
 sed -i "s/dessalines\/lemmy-ui:.*/dessalines\/lemmy-ui:$new_tag/" ../dev/docker-compose.yml
 sed -i "s/dessalines\/lemmy-ui:.*/dessalines\/lemmy-ui:$new_tag/" ../federation/docker-compose.yml
-sed -i "s/dessalines\/lemmy-ui:.*/dessalines\/lemmy-ui:$new_tag/" ../prod/docker-compose.yml
-sed -i "s/dessalines\/lemmy:.*/dessalines\/lemmy:$new_tag/" ../prod/docker-compose.yml
-
 git add ../dev/docker-compose.yml
-git add ../prod/docker-compose.yml
 git add ../federation/docker-compose.yml
 
+# The ansible and docker installs should only update for non release-candidates
+# IE, when the third semver is a number, not '2-rc'
+if [ ! -z "${third_semver##*[!0-9]*}" ]; then
+  sed -i "s/dessalines\/lemmy:.*/dessalines\/lemmy:$new_tag/" ../prod/docker-compose.yml
+  git add ../prod/docker-compose.yml
+
+  # Setting the version for Ansible
+  pushd ../../
+  echo $new_tag > "ansible/VERSION"
+  git add "ansible/VERSION"
+  popd
+fi
+
 # The commit
 git commit -m"Version $new_tag"
 git tag $new_tag
@@ -34,21 +38,6 @@ git tag $new_tag
 # export COMPOSE_DOCKER_CLI_BUILD=1
 # export DOCKER_BUILDKIT=1
 
-# # Rebuilding docker
-# if [ $third_semver -eq 0 ]; then
-#   # TODO get linux/arm/v7 build working
-#   # Build for Raspberry Pi / other archs too
-#   docker buildx build --platform linux/amd64,linux/arm64 ../../ \
-#     --file Dockerfile \
-#     --tag dessalines/lemmy:$new_tag \
-#     --push
-# else
-#   docker buildx build --platform linux/amd64 ../../ \
-#     --file Dockerfile \
-#     --tag dessalines/lemmy:$new_tag \
-#     --push
-# fi
-
 # Push
 git push origin $new_tag
 git push
index 2d2d75722dac16eb4beb50b58ed9f8185f79b1ef..a508269a5e72ac6731247af5efe3091f39e953af 100644 (file)
@@ -12,7 +12,7 @@ services:
     restart: always
 
   lemmy:
-    image: dessalines/lemmy:0.10.0-rc.7
+    image: dessalines/lemmy:0.9.9
     ports:
       - "127.0.0.1:8536:8536"
     restart: always
@@ -26,7 +26,7 @@ services:
       - iframely
 
   lemmy-ui:
-    image: dessalines/lemmy-ui:0.10.0-rc.7
+    image: dessalines/lemmy-ui:0.9.9
     ports:
       - "127.0.0.1:1235:1234"
     restart: always