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
|
# Copies your code file from your action repository to the filesystem path `/` of the container
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|||||||
10
README.md
10
README.md
@@ -11,15 +11,15 @@ Put the following step in your workflow:
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
- name: Minio Deploy
|
- name: Minio Deploy
|
||||||
uses: lovellfelix/minio-deploy-action@v1
|
uses: https://git.opytex.org/lafrite/minio-deploy-action@main
|
||||||
with:
|
with:
|
||||||
endpoint: ${{ secrets.MINIO_ENDPOINT }}
|
endpoint: ${{ secrets.MINIO_ENDPOINT }}
|
||||||
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
|
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
|
||||||
secret_key: ${{ secrets.MINIO_SECRET_KEY }}
|
secret_key: ${{ secrets.MINIO_SECRET_KEY }}
|
||||||
bucket: 'mybucket'
|
bucket: "mybucket"
|
||||||
# Optional inputs with their defaults:
|
# Optional inputs with their defaults:
|
||||||
source_dir: 'public'
|
source_dir: "public"
|
||||||
target_dir: '/'
|
target_dir: "/"
|
||||||
```
|
```
|
||||||
|
|
||||||
Workflow example:
|
Workflow example:
|
||||||
@@ -42,7 +42,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Minio Deploy
|
- name: Minio Deploy
|
||||||
uses: lovellfelix/minio-deploy-action@v1
|
uses: https://git.opytex.org/lafrite/minio-deploy-action@main
|
||||||
with:
|
with:
|
||||||
endpoint: ${{ secrets.MINIO_ENDPOINT }}
|
endpoint: ${{ secrets.MINIO_ENDPOINT }}
|
||||||
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
|
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
|
||||||
|
|||||||
32
action.yml
32
action.yml
@@ -1,37 +1,37 @@
|
|||||||
name: 'Minio upload'
|
name: "Minio upload"
|
||||||
description: 'Deploy to Minio Storage'
|
description: "Deploy to Minio Storage"
|
||||||
author: 'lovellfelix'
|
author: "sPazz"
|
||||||
inputs:
|
inputs:
|
||||||
endpoint:
|
endpoint:
|
||||||
description: 'Minio endpoint of object storage host'
|
description: "Minio endpoint of object storage host"
|
||||||
required: true
|
required: true
|
||||||
access_key:
|
access_key:
|
||||||
description: 'Minio access key (username)'
|
description: "Minio access key (username)"
|
||||||
required: true
|
required: true
|
||||||
secret_key:
|
secret_key:
|
||||||
description: 'Minio secret key (password)'
|
description: "Minio secret key (password)"
|
||||||
required: true
|
required: true
|
||||||
bucket:
|
bucket:
|
||||||
description: 'Set the target minio bucket for deployment.'
|
description: "Set the target minio bucket for deployment."
|
||||||
required: true
|
required: true
|
||||||
source_dir:
|
source_dir:
|
||||||
description: 'Set an input directory for deployment.'
|
description: "Set an input directory for deployment."
|
||||||
required: false
|
required: false
|
||||||
default: 'public'
|
default: "public"
|
||||||
target_dir:
|
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
|
required: false
|
||||||
default: '/'
|
default: "/"
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: "docker"
|
||||||
image: 'Dockerfile'
|
image: "Dockerfile"
|
||||||
env:
|
env:
|
||||||
MINIO_ENDPOINT: ${{ inputs.endpoint }}
|
MINIO_ENDPOINT: ${{ inputs.endpoint }}
|
||||||
MINIO_ACCESS_KEY: ${{ inputs.access_key }}
|
MINIO_ACCESS_KEY: ${{ inputs.access_key }}
|
||||||
MINIO_SECRET_KEY: ${{ inputs.secret_key }}
|
MINIO_SECRET_KEY: ${{ inputs.secret_key }}
|
||||||
args:
|
args:
|
||||||
- ${{ inputs.source_dir }}
|
- ${{ inputs.source_dir }}
|
||||||
- '${{ inputs.bucket }}${{ inputs.target_dir }}'
|
- "${{ inputs.bucket }}${{ inputs.target_dir }}"
|
||||||
branding:
|
branding:
|
||||||
icon: 'upload-cloud'
|
icon: "upload-cloud"
|
||||||
color: 'black'
|
color: "black"
|
||||||
|
|||||||
Reference in New Issue
Block a user