feat: make it mine
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM minio/mc:RELEASE.2020-10-03T02-54-56Z
|
||||
FROM minio/mc:RELEASE.2025-07-21T05-28-08Z
|
||||
|
||||
# Copies your code file from your action repository to the filesystem path `/` of the container
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
12
README.md
12
README.md
@@ -1,6 +1,6 @@
|
||||
# Minio Deploy GitHub Action
|
||||
|
||||
This is a fork from hkdobrev/minio-deploy-action with some minor changes.
|
||||
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.
|
||||
@@ -11,15 +11,15 @@ Put the following step in your workflow:
|
||||
|
||||
```yml
|
||||
- name: Minio Deploy
|
||||
uses: lovellfelix/minio-deploy-action@v1
|
||||
uses: https://git.opytex.org/lafrite/minio-deploy-action@main
|
||||
with:
|
||||
endpoint: ${{ secrets.MINIO_ENDPOINT }}
|
||||
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
|
||||
secret_key: ${{ secrets.MINIO_SECRET_KEY }}
|
||||
bucket: 'mybucket'
|
||||
bucket: "mybucket"
|
||||
# Optional inputs with their defaults:
|
||||
source_dir: 'public'
|
||||
target_dir: '/'
|
||||
source_dir: "public"
|
||||
target_dir: "/"
|
||||
```
|
||||
|
||||
Workflow example:
|
||||
@@ -42,7 +42,7 @@ jobs:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Minio Deploy
|
||||
uses: lovellfelix/minio-deploy-action@v1
|
||||
uses: https://git.opytex.org/lafrite/minio-deploy-action@main
|
||||
with:
|
||||
endpoint: ${{ secrets.MINIO_ENDPOINT }}
|
||||
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
|
||||
|
||||
32
action.yml
32
action.yml
@@ -1,37 +1,37 @@
|
||||
name: 'Minio upload'
|
||||
description: 'Deploy to Minio Storage'
|
||||
author: 'lovellfelix'
|
||||
name: "Minio upload"
|
||||
description: "Deploy to Minio Storage"
|
||||
author: "sPazz"
|
||||
inputs:
|
||||
endpoint:
|
||||
description: 'Minio endpoint of object storage host'
|
||||
description: "Minio endpoint of object storage host"
|
||||
required: true
|
||||
access_key:
|
||||
description: 'Minio access key (username)'
|
||||
description: "Minio access key (username)"
|
||||
required: true
|
||||
secret_key:
|
||||
description: 'Minio secret key (password)'
|
||||
description: "Minio secret key (password)"
|
||||
required: true
|
||||
bucket:
|
||||
description: 'Set the target minio bucket for deployment.'
|
||||
description: "Set the target minio bucket for deployment."
|
||||
required: true
|
||||
source_dir:
|
||||
description: 'Set an input directory for deployment.'
|
||||
description: "Set an input directory for deployment."
|
||||
required: false
|
||||
default: 'public'
|
||||
default: "public"
|
||||
target_dir:
|
||||
description: 'Set a target directory for deployment (with a leading slash).'
|
||||
description: "Set a target directory for deployment (with a leading slash)."
|
||||
required: false
|
||||
default: '/'
|
||||
default: "/"
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
using: "docker"
|
||||
image: "Dockerfile"
|
||||
env:
|
||||
MINIO_ENDPOINT: ${{ inputs.endpoint }}
|
||||
MINIO_ACCESS_KEY: ${{ inputs.access_key }}
|
||||
MINIO_SECRET_KEY: ${{ inputs.secret_key }}
|
||||
args:
|
||||
- ${{ inputs.source_dir }}
|
||||
- '${{ inputs.bucket }}${{ inputs.target_dir }}'
|
||||
- "${{ inputs.bucket }}${{ inputs.target_dir }}"
|
||||
branding:
|
||||
icon: 'upload-cloud'
|
||||
color: 'black'
|
||||
icon: "upload-cloud"
|
||||
color: "black"
|
||||
|
||||
Reference in New Issue
Block a user