You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
yangwang d80fe4c4ec 更新 'Dockerfile' 2 years ago
Dockerfile 更新 'Dockerfile' 2 years ago
LICENSE Add initial version of the action 4 years ago
README.md Correct PR opened event in example 4 years ago
action.yml Add an optional insecure option for minio 2 years ago
entrypoint.sh Do not pass empty argument if insecure is not set 2 years ago

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.