From 93d579a9366b47b9cdc392d9e3da963e22dbb750 Mon Sep 17 00:00:00 2001 From: Stuart Thomson Date: Fri, 22 Jan 2021 17:50:17 +1300 Subject: [PATCH] doc: Add section to README for use in GitLab CI (#3577) --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 96b3fa5a..e704c9e4 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,21 @@ docker run -it --entrypoint=/bin/sh minio/mc then use the [`mc config` command](#add-a-cloud-storage-service). +### GitLab CI +When using the Docker container in GitLab CI, you must [set the entrypoint to an empty string](https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#overriding-the-entrypoint-of-an-image). + +``` +deploy: + image: + name: minio/mc + entrypoint: [''] + stage: deploy + before_script: + - mc alias set minio $MINIO_HOST $MINIO_ACCESS_KEY $MINIO_SECRET_KEY + script: + - mc cp +``` + ## macOS ### Homebrew Install mc packages using [Homebrew](http://brew.sh/)