diff --git a/mirror_folder_to_s3.yml b/mirror_folder_to_s3.yml index 83e57dd6056e07a42e835968bb5519f980b11049..eb2243d2e54879253a5d6ce6df3d58fd3f1cb6b8 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