CI fix
All checks were successful
Deploy / build-deploy (push) Successful in 6m20s

This commit is contained in:
Jorijn van der Graaf 2026-08-10 01:51:39 +02:00
commit 38688a68f5
3 changed files with 99 additions and 25 deletions

View file

@ -109,16 +109,22 @@ jobs:
# Writes straight into the mount so the copies persist across deploys —
# they are NOT always reproducible, because a source instance deleting a
# file leaves ours as the only one.
id: media
run: |
set -eu
if [ -d /deploy-app ]; then
mkdir -p /deploy-app/media
tools/fetch-media.sh /deploy-app/media
dir=/deploy-app/media
else
echo "WARNING: /deploy-app not mounted; mirroring to a throwaway dir." >&2
echo "Media will be re-downloaded on every build until the mount exists." >&2
tools/fetch-media.sh media
dir=media
fi
tools/fetch-media.sh "$dir"
# Handed to the e2e step so it checks the files where they actually
# are. It used to assume ./media and reported every referenced file
# as missing here, which reads as a broken site and means a wrong path.
echo "dir=$dir" >> "$GITHUB_OUTPUT"
- name: Build and test the backend
id: srv
@ -216,6 +222,7 @@ jobs:
# A gate, not a report: a failure here stops the deploy.
env:
SRV: ${{ steps.srv.outputs.srv }}
E2E_MEDIA_DIR: ${{ steps.media.outputs.dir }}
run: tools/e2e.sh "$SRV/catcrafts-server"
- name: Pre-compress static assets