From 1f4fafcee58750ebe8f726d33a55d926d2224065 Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Sat, 19 Dec 2020 01:38:09 +0200 Subject: [PATCH] Install mc to /usr/local/bin --- Dockerfile | 3 ++- entrypoint.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f169d6f..f0be700 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,8 @@ RUN apt-get update && \ RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc \ && chmod +x mc \ - && ./mc --help + && mv mc /usr/local/bin/ \ + && mc --help # Copies your code file from your action repository to the filesystem path `/` of the container COPY entrypoint.sh /entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh index b05d8f8..f662dd7 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 -./mc mirror --overwrite $1 "deploy/$2" +mc mirror --overwrite $1 "deploy/$2"