Build PROMPT media library with masonry UI and persistent PostgreSQL S3 storage
PROMPT CI and deployment / verify-and-deploy (push) Successful in 8m18s
PROMPT CI and deployment / verify-and-deploy (push) Successful in 8m18s
This commit is contained in:
+16
-1
@@ -9,7 +9,7 @@ on:
|
||||
jobs:
|
||||
verify-and-deploy:
|
||||
runs-on: ces-control
|
||||
timeout-minutes: 20
|
||||
timeout-minutes: 35
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -28,6 +28,21 @@ jobs:
|
||||
run: npm run build
|
||||
- name: Test standalone production server
|
||||
run: npm run test:smoke
|
||||
- name: Prepare Docker and FFmpeg for isolated integration tests
|
||||
run: |
|
||||
set -eu
|
||||
if [ "$(id -u)" -eq 0 ]; then SUDO=""; else SUDO="sudo -n"; fi
|
||||
if ! command -v docker >/dev/null || ! docker compose version >/dev/null 2>&1; then
|
||||
$SUDO apt-get update -qq
|
||||
$SUDO apt-get install -y docker.io docker-compose-v2
|
||||
$SUDO systemctl enable --now docker
|
||||
fi
|
||||
if ! command -v ffmpeg >/dev/null; then
|
||||
$SUDO apt-get update -qq
|
||||
$SUDO apt-get install -y ffmpeg
|
||||
fi
|
||||
- name: Test real PostgreSQL, S3 and video processing in isolation
|
||||
run: bash scripts/integration.sh
|
||||
- name: Deploy persistent systemd service
|
||||
if: gitea.ref == 'refs/heads/main' && (gitea.event_name == 'push' || gitea.event_name == 'workflow_dispatch')
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user