-
-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Action test for S3 upload (#4367)
- Loading branch information
1 parent
2b3fff4
commit f766094
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
services: | ||
minio: | ||
image: minio/minio:RELEASE.2024-05-10T01-41-38Z | ||
volumes: | ||
- minio-data:/data | ||
ports: | ||
- "9000:9000" | ||
environment: | ||
- MINIO_ROOT_USER=user | ||
- MINIO_ROOT_PASSWORD=password | ||
command: server /data --console-address ":9001" | ||
networks: | ||
- skynet | ||
mc: | ||
image: minio/mc:RELEASE.2024-10-08T09-37-26Z | ||
depends_on: | ||
- minio | ||
networks: | ||
- skynet | ||
entrypoint: > | ||
/bin/sh -c " | ||
/usr/bin/mc alias set sitespeedio http://minio:9000 user password && | ||
(/usr/bin/mc mb --region=motown sitespeedio/sitespeedio || echo 'Bucket already exists') && | ||
/usr/bin/mc ilm rule add --expire-days 30 sitespeedio/sitespeedio && | ||
/usr/bin/mc anonymous set public sitespeedio/sitespeedio && | ||
/usr/bin/mc admin config set sitespeedio compression extensions=\".html,.css,.js\" && | ||
echo 'MinIO and lifecycle policy setup complete.'" | ||
volumes: | ||
minio-data: | ||
networks: | ||
skynet: | ||
name: skynet |