Skip to content

hostwithquantum/setup-mc

Actions
Setup the minio client (mc) on GitHub Actions
v1.1.0
Latest
Star (1)

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 

hostwithquantum/setup-mc is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Setup the minio client (mc) on GitHub Actions
v1.1.0
Latest

hostwithquantum/setup-mc is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.