A GitHub Action that installs the MinIO client (mc) on your runner, with optional alias configuration.
curl- Linux runners
jobs:
example:
runs-on: ubuntu-lateststeps:
- uses: hostwithquantum/setup-mc@v1.1.1
- run: | mc alias set my-storage \ https://s3.example.org \ ${{ secrets.ACCESS_KEY }} \ ${{ secrets.SECRET_KEY }} - run: mc ls my-storage/bucketjobs:
example:
runs-on: ubuntu-lateststeps:
- uses: hostwithquantum/setup-mc@v1.1.1with:
alias-name: my-examplealias-url: https://s3.example.orgalias-access-key: ${{ secrets.ACCESS_KEY }}alias-secret-key: ${{ secrets.SECRET_KEY }}
- name: create 'bucket'run: mc mb my-example/bucket| input | description | required |
|---|---|---|
dl-url | Override where mc is downloaded from (e.g. to pin a version) | no |
alias-name | Name of the alias (defaults to default) | no |
alias-url | URL of the S3 endpoint | no |
alias-access-key | Access key for the S3 endpoint | no |
alias-secret-key | Secret key for the S3 endpoint | no |
When alias-url is set, the action configures an mc alias using the provided credentials.
Pin to a to a full tag / commit SHA if you want reproducible builds.