Skip to content

canonical/microceph-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy Microceph S3 as GH Action

This action sets a single-node microceph with S3 and self-signed HTTPS support for testing with 1G net storage.

Usage

      - name: Setup microceph
        uses: canonical/microceph-action@v0.2
        with:
          channel: 'latest/edge'
          accesskey: 'accesskey'
          secretkey: 'secretkey'
          bucket: 'testbucket'
          osdsize: '20G'

Once ran, microceph will generate a file with all the details, named microceph.source. It will contain the following:

S3_SERVER_URL=https://<IP>
S3_ACCESS_KEY=...
S3_SECRET_KEY=...
S3_BUCKET=...
S3_REGION=default
S3_CA_BUNDLE_PATH=<path>

Use the environment variables above for the next steps, for example:

$ s3cmd [--no-check-certificate] --host "${S3_SERVER_URL}" \
        --host-bucket="${S3_SERVER_URL}/%(bucket)" \
        --access_key="${S3_ACCESS_KEY}" \
        --ca-cert="${S3_CA_BUNDLE_PATH}" \
        --secret_key="${S3_SECRET_KEY}" ls

About

A S3 server based on microceph with optional self-signed cert for GH runners.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages