Skip to content

A github action to download minio client (mc) in your workflows.

Notifications You must be signed in to change notification settings

hostwithquantum/setup-mc

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hostwithquantum/setup-mc

Install the minio client (mc) on Github Actions.

Requires:

  • curl
  • Linux runners

Examples

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

Inputs

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