drone-plugins / drone-s3-sync

Drone plugin for syncing artifacts with an Amazon S3 Bucket
http://plugins.drone.io/drone-plugins/drone-s3-sync
Apache License 2.0
24 stars 32 forks source link

Delete option sometimes doesn't work as anticipated #16

Open matteosuppo opened 8 years ago

matteosuppo commented 8 years ago

It happens only sometimes that it deletes files that it shouldn't.

For example just today in the logs we had:

Uploading "/drone/src/github.com/matteosuppo/reference/public/en/index.html" with Content-Type "text/html; charset=utf-8" and permissions "public-read"
[...]
Removing remote file "reference/en/index.html"

where the config was

publish:
    s3_sync:
        acl: public-read
        region: "us-east-1"
        bucket: $$S3_BUCKET
        access_key: $$S3_ACCESS
        secret_key: $$S3_SECRET
        source: public
        delete: true
        target: reference
        when:
            branch: master
orangedeng commented 2 years ago

Same issue here. Hope we can get this fix.