Skip to content

GitHub Action to deploy files with Minio client to a Minio bucket and send notify to slack hook

License

Notifications You must be signed in to change notification settings

iamapinan/minio-upload-and-slack-notify

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

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minio Upload and Slack Notify

  • Run minio client in GitHub Actions to deploy files to Minio object storage.
  • Get uploaded url
  • Send notification to slack.

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

Usage

Put the following step in your workflow:

- name: Minio Deploy
uses: iamapinan/[email protected]
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: '/'
  file: 'app-release.apk'
  slack_hook: ${{ secrets.SLACK_HOOK }}
  slack_msg: "send builded file for test here is download info"
  slack_botname: "Notify"

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: iamapinan/[email protected]
        with:
          endpoint: ${{ secrets.MINIO_ENDPOINT }}
          access_key: ${{ secrets.MINIO_ACCESS_KEY }}
          secret_key: ${{ secrets.MINIO_SECRET_KEY }}
          bucket: 'mybucket'
          source_dir: 'public'
          target_dir: '/'
          file: 'app-release.apk'
          slack_hook: ${{ secrets.SLACK_HOOK }}
          slack_msg: "send builded file for test here is download info"
          slack_botname: "Notify"

License

Licensed under the MIT license. See LICENSE.

About

GitHub Action to deploy files with Minio client to a Minio bucket and send notify to slack hook

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 50.7%
  • Shell 49.3%