Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 991 Bytes

README.md

File metadata and controls

38 lines (31 loc) · 991 Bytes

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