Skip to content

Commit 1a5d23b

Browse files
committed
📝 added instructions for use
Especially includes insturctions for adding this to use on Azure DevOps
1 parent 18c8a59 commit 1a5d23b

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,53 @@ If there's SSH & Git, you can sync WordPress and Azure DevOps using git.
1414

1515
Let your CI Pipeline manage getting those plugin updates from your unix WordPress server.
1616

17+
#### Azure Pipeline
18+
19+
20+
#### Live WordPress Branch History
21+
22+
![AzureHistory](https://github.com/devnetkc/readme-assets/raw/master/Images/WordPress-commit-history.png)
23+
24+
### How To Use
25+
26+
````cmd
27+
bash ~/wp-git-sync.sh \
28+
-b sgLive \
29+
-d sgStage \
30+
-g $(DevOpsHost)wordpress-ssh-git-ci \
31+
-p /home/username/public_html/wp-git-sync \
32+
-t $(DevOpsToken) \
33+
-u $(DevOpsTokenUser)
34+
````
35+
36+
#### Azure Pipeline
37+
38+
YAML Example:
39+
*note: This example uses Azure Key store variables*
40+
41+
````yaml
42+
steps:
43+
- task: SSH@0
44+
displayName: pushChanges
45+
inputs:
46+
sshEndpoint: 'agent-to-siteground'
47+
commands: 'bash ~/wp-git-sync.sh \
48+
-b sgLive \
49+
-d sgStage \
50+
-g $(DevOpsHost)wordpress-ssh-git-ci \
51+
-p /home/username/public_html/wp-git-sync \
52+
-t $(DevOpsToken) \
53+
-u $(DevOpsTokenUser)'
54+
````
55+
56+
Classic Editor Example:
57+
58+
![PipelineScreen](https://github.com/devnetkc/readme-assets/raw/master/Images/Azure-Pipeline-Example.png)
59+
60+
Console Log:
61+
62+
![WordPress-SSH-Git-CI](https://github.com/devnetkc/readme-assets/raw/master/Images/WordPress-SSH-Git-CI.png)
63+
1764
<!-- markdownlint-disable -->
1865
#### Requirements:
1966
<!-- markdownlint-restore -->

0 commit comments

Comments
 (0)