Skip to content
Ryan Valizan edited this page Sep 15, 2020 · 2 revisions

Welcome to the WordPress SSH Git CI wiki!

Information on the script will be sprinkled into this WIKI page as time allows. This is a good way to discover issues and/or plan out refactoring adjustments to be made.

Requirements

  • Web server have git capability -- think this is the most important one
    • Git version 2.6+ has been tested
  • A method to store your secrete variables such as
    • username
    • password/token
  • SSH access to execute scripts on WordPress server
    • note: cron can serve as a slower alternative to SSH
  • Some kind of CI pipeline or cron job to hook into after a branch update event triggers an agent to run the script remotely

Capabilities

  • Parameter options for dynamic use
  • Separated functions
  • Is executed through an ssh call to your WordPress web server

Features

  • Check a git repo on a WordPress web server for changes
  • Stashes changes before working on merges
  • Pulls in latest release/master branch from development repository — on Azure DevOps, GitHub, BitBucket, etc.
  • Merges new changes from DevOps into WordPress Live branch
  • Returns WordPress updates and changes using git stash pop
  • Commits the new changes on top of the latest master branch head
  • Pushes WordPress live branch back to the development repository for the team to handle PR to DevOps master.
Clone this wiki locally