From e945d28aecf31eff07933c361ddd96e260beefbe Mon Sep 17 00:00:00 2001 From: Pierre Ozoux Date: Wed, 19 Jan 2022 18:18:24 +0000 Subject: [PATCH] Moves to rclone. --- mirror_folder_to_s3.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mirror_folder_to_s3.yml b/mirror_folder_to_s3.yml index 83e57dd..eb2243d 100644 --- a/mirror_folder_to_s3.yml +++ b/mirror_folder_to_s3.yml @@ -5,13 +5,16 @@ variables: .deploy: stage: deploy image: - name: minio/mc:RELEASE.2020-01-13T22-49-03Z + name: rclone/rclone entrypoint: [""] script: - cd ${FOLDER} - export AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID:=$BUCKET}" - - export MC_HOST_minio=https://${AWS_ACCESS_KEY_ID}:${AWS_SECRET_ACCESS_KEY}@${OBJECT_STORE_ENDPOINT} - - mc mirror --remove --overwrite . minio/${BUCKET} + - export RCLONE_CONFIG_MINIO_TYPE=s3 + - export RCLONE_CONFIG_MINIO_ENDPOINT=${OBJECT_STORE_ENDPOINT} + - export RCLONE_CONFIG_MINIO_PROVIDER=Minio + - export RCLONE_CONFIG_MINIO_ENV_AUTH=true + - rclone sync -c . minio:$BUCKET deploy-beta: extends: .deploy -- GitLab