Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
# `ghost` user, which cannot reach npx's cache in the runner's home.
- name: Ghost-CLI, nginx and MySQL for the source
run: |
npm install --global ghost-cli@1.34.0
npm install --global ghost-cli@1.34.1
sudo apt-get update
sudo apt-get install --yes nginx
sudo systemctl start nginx mysql
Expand Down
4 changes: 2 additions & 2 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ services:
- traffic-analytics-${COMPOSE_PROJECT_NAME:-ghost}

activitypub:
image: ghcr.io/tryghost/activitypub:1.2.14@sha256:a607c8cd82d7d84eabec7abdb5c98e2788605572a0fa79ba75a872787e0084bc
image: ghcr.io/tryghost/activitypub:1.2.16@sha256:b440548b8a87eaf70c9440d4b157beee4898b85ba4294509926517a85e7573c7
restart: ${RESTART_POLICY:-unless-stopped}
profiles: [activitypub]
labels:
Expand Down Expand Up @@ -314,7 +314,7 @@ services:
# or failed job stays stopped instead of being restarted by the daemon.

activitypub-migrate:
image: ghcr.io/tryghost/activitypub-migrations:1.2.14@sha256:c116a15f9c8a94542440fadc17bc06c15eeee6e3a61ff2731e3b6e2ea91f7356
image: ghcr.io/tryghost/activitypub-migrations:1.2.16@sha256:1ecd26490dc668c6e5e467f85ea2e40d8bfc033bae8eb70f5378a24a27bb75d6
restart: "no"
profiles: [activitypub]
labels:
Expand Down
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ interactive:
A Ghost-CLI site, local or production, moves to Docker with its posts,
members, staff accounts, settings, themes, images and configuration. It needs:

- **Ghost-CLI 1.34.0 or later** (`ghost --version`), and
- **Ghost-CLI 1.34.1 or later** (`ghost --version`), and
- **Ghost 6.61.0 or later** in the site, the first release with a `next` image.
The import runs exactly the version the site runs; upgrade afterwards.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# and for the MySQL source a `mysqldump` on the PATH; without one that half
# fails, or is skipped with GD_E2E_ALLOW_SKIP=1.
#
# GD_TEST_GHOST_CLI the exporter to use. Default: npx --yes ghost-cli@1.34.0
# GD_TEST_GHOST_CLI the exporter to use. Default: npx --yes ghost-cli@1.34.1
# GD_TEST_KEEP=1 leave the work directory and sites in place afterwards
#
# Exits non-zero at the first check that fails, naming it.
Expand All @@ -33,7 +33,7 @@ DEFAULT_GHOST=ghost:6-next-alpine
source "$ROOT/tests/e2e/lib.sh"
require_docker

read -ra GHOST_CLI <<<"${GD_TEST_GHOST_CLI:-npx --yes ghost-cli@1.34.0}"
read -ra GHOST_CLI <<<"${GD_TEST_GHOST_CLI:-npx --yes ghost-cli@1.34.1}"
readonly SOURCE_DB_CONTAINER="ghost-docker-test-import-source-db"
readonly SQLITE_PORT=23711
readonly MYSQL_SITE_PORT=23712
Expand Down
11 changes: 9 additions & 2 deletions tests/e2e/production-import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,16 @@ SOURCE_INSTALLED=0
# --- Helpers -----------------------------------------------------------------

# ghost_cli ARGS... -- Ghost-CLI in the source's directory; output to $WORK/ghost.log.
# On failure, its debug log too: a failed subprocess's stderr is only there.
ghost_cli() {
(cd "$SOURCE" && "${GHOST_CLI[@]}" "$@") >"$WORK/ghost.log" 2>&1 ||
fail "ghost $* failed" "$(tail -40 "$WORK/ghost.log")"
local debug
(cd "$SOURCE" && "${GHOST_CLI[@]}" "$@") >"$WORK/ghost.log" 2>&1 && return
debug=$(grep -o '/[^ ]*ghost-cli-debug-[^ ]*\.log' "$WORK/ghost.log" | tail -1 || true)
[[ -z $debug || ! -f $debug ]] || {
printf '\n--- %s ---\n' "$debug"
tail -60 "$debug"
} >>"$WORK/ghost.log"
fail "ghost $* failed" "$(tail -100 "$WORK/ghost.log")"
}

# run_import SITE ARGS... -> sets OUT and RC, never exits
Expand Down
Loading