-
-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
fd9a69d
commit fde4bea
Showing
6 changed files
with
24 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ wordpress_sites: | |
local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root) | ||
repo: [email protected]:roots/bedrock.git | ||
branch: master | ||
# subtree_path: site # relative path to your Bedrock/WP directory in your repo (above) if it is not the root (like the roots-example-project structure) | ||
# repo_subtree_path: site # relative path to your Bedrock/WP directory in your repo (above) if it is not the root (like the roots-example-project structure) | ||
permalink_structure: "/%postname%/" | ||
multisite: | ||
enabled: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ wordpress_sites: | |
local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root) | ||
repo: [email protected]:roots/bedrock.git | ||
branch: master | ||
# subtree_path: site # relative path to your Bedrock/WP directory in your repo (above) if it is not the root (like the roots-example-project structure) | ||
# repo_subtree_path: site # relative path to your Bedrock/WP directory in your repo (above) if it is not the root (like the roots-example-project structure) | ||
permalink_structure: "/%postname%/" | ||
multisite: | ||
enabled: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters