You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added Google Cloud Storage (GCS) integration for image uploads (#533)
Ref https://linear.app/ghost/issue/AP-1062/
Summary of changes:-
- Integrated Google Cloud Storage (GCS) for handling image uploads.
- Added a new Docker Compose service fake-gcs to simulate GCS locally.
- Configured environment variables in local/test services to connect with the emulator.
- Added @google-cloud/storage as a new dependency.
- Validation on boot:
-- Initializes the GCS client
-- Validates and creates the bucket (if running with the emulator)
- Introduced a new POST API: ./ghost/activitypub/upload/image
-- Validates file type and size
-- Uploads the image to the GCS bucket with a unique path
-- Returns a public URL to access the image
- Added unit tests for the upload logic.
- Added new Cucumber step definitions and a test scenario to verify the upload flow end-to-end.
0 commit comments