@@ -26,32 +26,6 @@ jobs:
|
|||||||
--health-interval 10s
|
--health-interval 10s
|
||||||
--health-timeout 5s
|
--health-timeout 5s
|
||||||
--health-retries 5
|
--health-retries 5
|
||||||
# Garage S3 service - just like in docker-compose!
|
|
||||||
garage:
|
|
||||||
image: dxflrs/garage:v2.3.0
|
|
||||||
env:
|
|
||||||
GARAGE_SERVER_BIND_ADDR: "0.0.0.0:3900"
|
|
||||||
GARAGE_S3_API_BIND_ADDR: "0.0.0.0:3900"
|
|
||||||
GARAGE_ADMIN_BIND_ADDR: "0.0.0.0:3902"
|
|
||||||
GARAGE_RPC_BIND_ADDR: "0.0.0.0:3901"
|
|
||||||
GARAGE_CLUSTER_REPLICATION_MODE: "none"
|
|
||||||
GARAGE_RPC_SECRET: "aa7c56948e0b1e7bdaf72c0a60eba338873d36b5db7eddee36a8ca057baa7dd7"
|
|
||||||
GARAGE_ADMIN_TOKEN: "test-admin-token"
|
|
||||||
GARAGE_DEFAULT_ACCESS_KEY: "${{ secrets.GARAGE_KEY_ID }}"
|
|
||||||
GARAGE_DEFAULT_SECRET_KEY: "${{ secrets.GARAGE_SECRET }}"
|
|
||||||
GARAGE_DEFAULT_BUCKET: "soaricarus-ci-bucket"
|
|
||||||
GARAGE_S3_REGION: "us-east-1"
|
|
||||||
GARAGE_DATA_DIR: "/data"
|
|
||||||
GARAGE_METADATA_DIR: "/data/meta"
|
|
||||||
AWS_S3_FORCE_PATH_STYLE: "true"
|
|
||||||
ports:
|
|
||||||
- 3900:3900
|
|
||||||
options: >-
|
|
||||||
--health-cmd "curl -f http://localhost:3900/ || exit 1"
|
|
||||||
--health-interval 10s
|
|
||||||
--health-timeout 5s
|
|
||||||
--health-retries 5
|
|
||||||
command: ["/garage", "server", "--single-node", "--default-bucket"]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
@@ -86,7 +60,7 @@ jobs:
|
|||||||
unzip awscliv2.zip
|
unzip awscliv2.zip
|
||||||
sudo ./aws/install
|
sudo ./aws/install
|
||||||
aws --version
|
aws --version
|
||||||
curl -v ${{ secrets.S3_CI_ENDPOINT_URL }}
|
# curl -v ${{ secrets.S3_CI_ENDPOINT_URL }}
|
||||||
|
|
||||||
# Create bucket
|
# Create bucket
|
||||||
aws --endpoint-url=${{ secrets.S3_CI_ENDPOINT_URL }} s3 mb s3://soaricarus-ci-bucket --region us-east-1
|
aws --endpoint-url=${{ secrets.S3_CI_ENDPOINT_URL }} s3 mb s3://soaricarus-ci-bucket --region us-east-1
|
||||||
@@ -106,7 +80,7 @@ jobs:
|
|||||||
GARAGE_DEFAULT_SECRET_KEY: "${{ secrets.GARAGE_SECRET }}"
|
GARAGE_DEFAULT_SECRET_KEY: "${{ secrets.GARAGE_SECRET }}"
|
||||||
GARAGE_S3_REGION: us-east-1
|
GARAGE_S3_REGION: us-east-1
|
||||||
S3_BUCKET_NAME: "soaricarus-ci-bucket"
|
S3_BUCKET_NAME: "soaricarus-ci-bucket"
|
||||||
S3_ENDPOINT_URL: "http://localhost:3900"
|
S3_ENDPOINT_URL: "${{ secrets.S3_CI_ENDPOINT_URL }}"
|
||||||
AWS_S3_FORCE_PATH_STYLE: "true"
|
AWS_S3_FORCE_PATH_STYLE: "true"
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
|
|||||||
Reference in New Issue
Block a user