emorydunn / MinIOPublishDeploy

A deployment method for Publish to upload files to a MinIO server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MinIOPublishDeploy

A deployment method for Publish to upload files to a MinIO server.

Installation

The plugin used the mc client and requires your server be configured.

Download the client and see configuration instructions.

Usage

import MinIOPublishDeploy

...
try Website().publish(using: [
    ...
    .minio("host-alias", path: "/sites/data/example.com/"),
])

By default the plugin assumes the binary is located at /usr/local/bin/mc, but can be customized with binPath.

The plugin mirrors the output directory to the remote location with the following options:

  • mirror
  • --remove
  • --overwrite
  • -q
  • -no-color

About

A deployment method for Publish to upload files to a MinIO server

License:MIT License


Languages

Language:Swift 100.0%