https://drone.io plugin to invalidate one or multiple AWS CloudFront paths.
invalidate_cloudfront_images:
image: kissmy/drone-cloudfront-invalidate
secrets: [aws_access_key_id, aws_secret_access_key]
distribution_id: ABCDEFGHIJKLMNOP
paths: ['/images/*']
invalidate_cloudfront_assets:
image: kissmy/drone-cloudfront-invalidate
secrets: [aws_access_key_id, aws_secret_access_key]
distribution_id: ABCDEFGHIJKLMNOP
paths: ['/css/*','/images/*','/js/*']
staging_invalidate_cloudfront_assets:
image: kissmy/drone-cloudfront-invalidate
secrets: [aws_access_key_id, aws_secret_access_key]
distribution_id: ABCDEFGHIJKLMNOP
paths: ['/css/*','/images/*','/js/*']
when:
branch: [develop]
docker run --rm \
-e PLUGIN_AWS_ACCESS_KEY_ID=AWS_ACCESS_KEY_ID \
-e PLUGIN_AWS_SECRET_ACCESS_KEY=AWS_SECRET_ACCESS_KEY \
-e PLUGIN_DISTRIBUTION_ID=ABCDEFGHIJKLMNOP \
-e PLUGIN_PATHS='/css/*','/images/*','/js/*' \
kissmy/drone-cloudfront-invalidate
MIT