Skip to content

GitHub Action to deploy files with Minio client to a Minio bucket

License

Notifications You must be signed in to change notification settings

lovellfelix/minio-deploy-action

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

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minio Deploy GitHub Action

This is a fork from hkdobrev/minio-deploy-action with some minor changes. 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: lovellfelix/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_dir: 'public'
    target_dir: '/'

Workflow example:

name: Deploy

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

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

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

License

Licensed under the MIT license. See LICENSE.

About

GitHub Action to deploy files with Minio client to a Minio bucket

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 64.8%
  • Shell 35.2%