Skip to content

Support new cloudfront feature to deploy to a subfolder in s3 #70

@BryanCrotaz

Description

@BryanCrotaz

I want to deploy only through s3/cloudfront, with a folder per branch. So I'd like to deploy both index and assets to this folder (creating it if necessary) , then setup a cloudfront distribution pointed at this folder.

It feels as though this requires a more flexible configuration, possibly through a config file which defines the steps to be carried out:

The current config could be stated as

deploy: [
  {
    task: "deploy",
    assets: true,
    s3: {
      bucket: "abc",
      path: "/" 
    }
  },
  {
    task: "deploy",
    index: true,
    redis: {
      // redis config here
    }
  },
  {
    task: "configure"
    redis: {
      currentIndex: "my-latest-index"
    }
  }
]

The array sets the task ordering and is easily extensible. I suggest that in the above example we register tasks with the container:
deploy:s3
deploy:heroku
configure:heroku

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions