Skip to content

Commit 084ffb1

Browse files
committed
📖 DOC: Enhance deployment info output format in entrypoint.sh
1 parent d7164ad commit 084ffb1

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ You can enable cache purging with the `CACHE_CLEAR` flag and perform PHP syntax
2727
- 'feature/**'
2828
workflow_dispatch:
2929
env:
30-
SERVER_NAME: pressable # pressable or wpengine
30+
SERVER_TYPE: pressable # pressable or wpengine
3131
SERVER_ID: pressable-username # Pressable SFTP username or WP Engine environment name
3232
PROJECT_TYPE: theme # plugin or theme
3333
PROJECT_NAME: theme-name # Name of the plugin or theme
@@ -44,7 +44,7 @@ You can enable cache purging with the `CACHE_CLEAR` flag and perform PHP syntax
4444
with:
4545
SSH_PRIVATE_KEY: ${{ secrets.MY_SSH_KEY }}
4646
SERVER_ID: ${{ env.SERVER_ID }}
47-
SERVER_TYPE: ${{ env.SERVER_NAME }}
47+
SERVER_TYPE: ${{ env.SERVER_TYPE }}
4848
REMOTE_PATH: 'wp-content/${{ env.PROJECT_TYPE }}s/${{ env.PROJECT_NAME }}'
4949
FLAGS: -azvrhi --inplace --delete --delete-excluded --exclude-from=.deployignore
5050
SCRIPT: 'bin/post-deploy.sh'

entrypoint.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ init() {
4242

4343
# Print deployment info
4444
print_info() {
45-
echo "--- Deployment info ---"
46-
echo "Deploying to: ${SERVER_TYPE}"
47-
echo "Server ID: ${SERVER_ID}"
48-
echo "Source path: ${SRC_PATH}"
49-
echo "Destination path: ${SERVER_DEST}"
50-
echo "Flags: ${FLAGS_ARRAY[@]}"
51-
echo "PHP linting: ${PHP_LINT}"
52-
echo "Cache clear: ${CACHE_CLEAR}"
53-
echo "Post-deploy script: ${SCRIPT}"
45+
echo "--- DEPLOYMENT INFO ---"
46+
echo "* Deploying to: ${SERVER_TYPE}"
47+
echo "* Server ID: ${SERVER_ID}"
48+
echo "* Source path: ${SRC_PATH}"
49+
echo "* Destination path: ${SERVER_DEST}"
50+
echo "* Flags: ${FLAGS_ARRAY[@]}"
51+
echo "* PHP linting: ${PHP_LINT}"
52+
echo "* Cache clear: ${CACHE_CLEAR}"
53+
echo "* Post-deploy script: ${SCRIPT}"
5454
echo "-----------------------"
5555
}
5656

0 commit comments

Comments
 (0)