Go to file
Haralan Dobrev 92e128b97c Add initial version of the action
Dockerfile Add initial version of the action
LICENSE Add initial version of the action
README.md Add initial version of the action
action.yml Add initial version of the action
entrypoint.sh Add initial version of the action

README.md

Minio Deploy GitHub Action

Run minio client in GitHub Actions to deploy files to Minio object storage.

It uses the mc mirror --overwrite command to deploy.

Usage

Put the following step in your workflow:

- name: Minio Deploy
uses: hkdobrev/minio-deploy-action@v1
with:
  endpoint: ${{ secrets.MINIO_ENDPOINT }}
  access_key: ${{ secrets.MINIO_ACCESS_KEY }}
  secret_key: ${{ secrets.MINIO_SECRET_KEY }}
  bucket: 'mybucket'
  # Optional inputs with their defaults:
  source_dit: 'public'
  target_dir: '/'

Workflow example:

name: Deploy

on:
  pull_request:
    types: [open, synchronize]
  push:
    branches:
      - master

jobs:
  build:
    name: Deploy
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1

      - name: Minio Deploy
        uses: hkdobrev/minio-deploy-action@v1
        with:
          endpoint: ${{ secrets.MINIO_ENDPOINT }}
          access_key: ${{ secrets.MINIO_ACCESS_KEY }}
          secret_key: ${{ secrets.MINIO_SECRET_KEY }}
          bucket: 'mybucket'
          source_dit: 'public'
          target_dir: '/'

License

Licensed under the MIT license. See LICENSE.