-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CICD-221] Refactor entrypoint.sh (#4)
- Loading branch information
1 parent
57f02d5
commit 58eb612
Showing
3 changed files
with
155 additions
and
113 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
"@wpengine/site-deploy": major | ||
--- | ||
|
||
# Refactor the Main Script | ||
|
||
Updates the main script to be more generic and allow the script and image to be used around other CI/CD Vendors. | ||
|
||
In order to use this script, each CI/CD vendor will need to set the environment variables accordingly: | ||
|
||
```sh | ||
REMOTE_PATH # Default is empty | ||
SRC_PATH # Default is the current directory | ||
FLAGS # Default is -azvr --inplace --exclude=".*" | ||
PHP_LINT # Default is "FALSE" | ||
CACHE_CLEAR # Default is "TRUE" | ||
SCRIPT # Default is empty | ||
CICD_VENDOR # Default is "wpe-cicd" | ||
``` | ||
|
||
Example of how to run this image: | ||
|
||
```sh | ||
docker run \ | ||
-e "WPE_SSHG_KEY_PRIVATE" \ | ||
--env-file ./.env \ | ||
-v <full_path_of_site>:/site \ | ||
--workdir=/site \ | ||
wpengine/site-deploy:latest | ||
``` |
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