Skip to content

Commit

Permalink
fix(update): update images during step
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredallard committed Jan 12, 2025
1 parent d90d7a2 commit 2611386
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
target: /etc/caddy
pds:
container_name: pds
image: ghcr.io/rgst-io/pds:0.4.83
image: ghcr.io/rgst-io/pds:0.4
network_mode: host
restart: unless-stopped
volumes:
Expand Down
10 changes: 4 additions & 6 deletions pdsadmin/update.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
set -euo pipefail

PDS_DATADIR="/pds"
COMPOSE_FILE="${PDS_DATADIR}/compose.yaml"
COMPOSE_URL="https://raw.githubusercontent.com/rgst-io/pds/main/compose.yaml"

# TODO: allow the user to specify a version to update to.
TARGET_VERSION="${1:-}"

COMPOSE_TEMP_FILE="${COMPOSE_FILE}.tmp"

echo "* Downloading PDS compose file"
Expand All @@ -28,6 +23,9 @@ fi

echo "* Updating PDS"
mv "${COMPOSE_TEMP_FILE}" "${COMPOSE_FILE}"
pushd "$PDS_DATADIR" >/dev/null || exit 1
docker compose pull
popd >/dev/null || exit 1

echo "* Restarting PDS"
systemctl restart pds
Expand Down

0 comments on commit 2611386

Please sign in to comment.