GitHub Action to deploy files with Minio client to a Minio bucket
Go to file
Haralan Dobrev 98438a5d45 Do not pass empty argument if insecure is not set 2022-08-29 20:45:26 +03:00
Dockerfile Install mc to /usr/local/bin 2020-12-19 01:38:09 +02:00
LICENSE Add initial version of the action 2020-12-18 23:55:05 +02:00
README.md Correct PR opened event in example 2020-12-19 00:30:40 +02:00
action.yml Add an optional insecure option for minio 2022-08-13 16:41:02 +03:00
entrypoint.sh Do not pass empty argument if insecure is not set 2022-08-29 20:45:26 +03:00

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_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: 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_dir 'public'
          target_dir: '/'

License

Licensed under the MIT license. See LICENSE.