mirror of
https://github.com/lovellfelix/minio-deploy-action.git
synced 2025-12-13 20:51:14 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52a5fb93c2 | ||
|
|
81cea32503 | ||
|
|
0dbf9b93c7 |
10
Dockerfile
10
Dockerfile
@@ -1,12 +1,4 @@
|
||||
FROM ubuntu:20.04
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install --assume-yes wget
|
||||
|
||||
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc \
|
||||
&& chmod +x mc \
|
||||
&& mv mc /usr/local/bin/ \
|
||||
&& mc --help
|
||||
FROM minio/mc:RELEASE.2020-10-03T02-54-56Z
|
||||
|
||||
# Copies your code file from your action repository to the filesystem path `/` of the container
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
name: 'Minio Deploy'
|
||||
name: 'Minio upload'
|
||||
description: 'Deploy to Minio Storage'
|
||||
author: 'hkdobrev'
|
||||
author: 'lovellfelix'
|
||||
inputs:
|
||||
endpoint:
|
||||
description: 'Minio endpoint of object storage host'
|
||||
@@ -34,4 +34,4 @@ runs:
|
||||
- '${{ inputs.bucket }}${{ inputs.target_dir }}'
|
||||
branding:
|
||||
icon: 'upload-cloud'
|
||||
color: 'red'
|
||||
color: 'black'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mc alias set deploy $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
|
||||
mc alias set deploy $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY --api S3v4
|
||||
|
||||
mc mirror --overwrite $1 "deploy/$2"
|
||||
|
||||
Reference in New Issue
Block a user