guardian/deploy — pull request #22 by gklopper (2012-05-24 09:25:03+00:00)
Title: Made a Package Type of AmazonWebServicesS3.

This allows me to treat my file uploads separately to my deploy. It also allows me to package upload artifacts separately so I can upload them to different buckets and give them different cache headers (artifacts are treated differently to static files)

So you can write deploy.json like this...

{
"packages":{
"frontend-article":{
"type":"executable-jar-webapp",
"apps":["frontend::article"],
"data":{
"port":"9000",
"bucket":"artifacts-83445s",
"healthcheck_paths":[
"/pages/info/2011/oct/06/submitting-content-to-print-publications"
]
}
},
"frontend-static":{
"type":"aws-s3",
"apps":["aws-s3"],
"data":{
"bucket":"artifacts-83445s",
"cacheControl":"public, max-age=84000"
}
},
"frontend-artifact":{
"type":"aws-s3",
"apps":["aws-s3"],
"data":{
"bucket":"artifacts-83445s",
"cacheControl":"no-cache"
}
}
},

"recipes":{
"default":{
"depends" : ["deploy"]
},
"deploy":{
"actionsPerApp": ["frontend-static.uploadStaticFiles", "frontend-artifact.uploadStaticFiles"],
"actionsPerHost": ["frontend-article.deploy"]
}
}
}