Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Git deployment strategy with git archive #451

Merged
merged 1 commit into from
Dec 30, 2015

Commits on Dec 30, 2015

  1. Improve Git deployment strategy with git archive

    Currently the deployment process looks like this:
    
    1. Clone the repo into the `source` dir
    2. Copy the `source` dir into a new release dir
    3. Optionally move the `repo_subtree_path` directory to the release root
    4. Optionally remove unwanted dirs in the new release
    
    This process leads to some complications and bugs. By copying the entire
    repo into the release dir and then moving the subtree, other directories
    are left behind that you manually need to clean up.
    
    There can also be conflicts if your subtree directory contains
    directories with the same name as directories in the repo's root.
    
    The new process looks like this:
    
    1. Clone the repo into the `source` dir
    2. Run `git archive` to populate the new release dir
    
    `git archive` already supports subtrees and through `.git_attributes`,
    other files/folders can be excluded.
    swalkinshaw committed Dec 30, 2015
    Configuration menu
    Copy the full SHA
    fde4bea View commit details
    Browse the repository at this point in the history