GitHub Action
hostwithquantum/setup-mc
v1.1.0
Latest version
Install the minio client (mc
) on Github Actions.
Requires:
- curl
- Linux runners
Configure the alias yourself:
jobs:
example:
runs-on: ubuntu-latest
steps:
- uses: hostwithquantum/setup-mc@main
- run: |
mc alias set my-storage \
https://s3.example.org \
${{ secrets.ACCESS_KEY }} \
${{ secrets.SECRET_KEY }}
- run: mc ls my-storage/bucket
Configure the alias using this github action:
jobs:
example:
runs-on: ubuntu-latest
steps:
- uses: hostwithquantum/setup-mc@main
with:
alias-name: my-example
alias-url: https://s3.example.org
alias-access-key: ${{ secrets.ACCESS_KEY }}
alias-secret-key: ${{ secrets.SECRET_KEY }}
- name: create 'bucket'
run: mc mb my-example/bucket
The following inputs are supported:
input | description | optional |
---|---|---|
dl-url |
override where mc is downloaded from (e.g. to specify a version) |
no |
alias-name |
the name of the alias (default ) |
yes |
alias-url |
the url of the s3 endpoint | yes |
alias-access-key |
the access key | yes |
alias-secret-key |
the secret key | yes |