Skip to content

Commit

Permalink
Merge pull request #82 from ubergeek77/0.19-testing
Browse files Browse the repository at this point in the history
Test with 0.19, fix some issues, add a warning for template users
  • Loading branch information
ubergeek77 authored Dec 15, 2023
2 parents 1d2fe7f + a36067e commit 76f5995
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 11 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

LED_CURRENT_VERSION="1.3.1"
LED_CURRENT_VERSION="1.3.2"

# cd to the directory the script is in
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
Expand Down Expand Up @@ -507,11 +507,11 @@ latest_github_tag() {
fi
RESULT=$(echo "${RESPONSE}" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')

# If no result, check the latest tag that doesn't contain the words beta or rc
# If no result, check the latest tag that doesn't contain the words beta, alpha, or rc
if [[ -z "${RESULT}" ]]; then
RESPONSE="$(curl -s ${CURL_ARGS} https://api.github.com/repos/$1/git/refs/tags)"
while IFS= read -r line; do
if [[ "${line,,}" != *beta* && "${line,,}" != *rc* ]]; then
if [[ "${line,,}" != *beta* && "${line,,}" != *alpha* && "${line,,}" != *rc* ]]; then
RESULT="$(echo ${line} | cut -d'/' -f3 | tr -d '",')"
break
fi
Expand Down Expand Up @@ -1304,6 +1304,14 @@ if [[ "${FORCE_DEPLOY}" != "1" ]]; then
fi
fi

# Warn the user to check their file before deploying
if [[ -f ./custom/docker-compose.yml.template ]]; then
echo ""
echo "NOTE: You are currently overriding the built-in docker-compose.yml with your own template."
echo " Please remember to incorporate any new changes into your docker-compose.yml.template before deploying!"
echo ""
fi

# Ask the user if they want to update
if [[ "${BACKEND_OUTDATED}" == "1" ]] || [[ "${FRONTEND_OUTDATED}" == "1" ]]; then
# Print scary warning if this is a backend update and data exists
Expand Down
4 changes: 3 additions & 1 deletion templates/docker-compose.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ services:
environment:
- LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy:8536
- LEMMY_UI_LEMMY_EXTERNAL_HOST=localhost:1236
volumes:
- ./lemmy-ui-themes:/app/extra_themes
depends_on:
- lemmy
restart: always
logging: *default-logging

pictrs:
image: asonix/pictrs:0.4.0
image: asonix/pictrs:0.4.3
user: 991:991
environment:
- PICTRS__MEDIA__VIDEO_CODEC=vp9
Expand Down

0 comments on commit 76f5995

Please sign in to comment.