I've been trying the aws-s3-deploy pipeline (https://bitbucket.org/atlassian/aws-s3-deploy), with little success.
My goal is to exclude the .git folder from deployment. According to the pipelin documentation, I set the var
EXTRA_ARGS: "--exclude '.git/*'"
The pipeline runs correctly, but the .git folder is always uploaded to S3. If I use double quotes, it is also uploaded. If I remove the quotes, an error happens (because the shell tries to expand).
Whenever I don't use quotes, and I don't use wildcards, for example
EXTRA_ARGS: "--exclude README.md"
everything works as expected and the file is excluded. So the problem seems to be whenever I want to use wildcards.
Any ideas on how to exclude the .git folder from deployment?