Skip to content

Instantly share code, notes, and snippets.

@trvswgnr
Last active August 11, 2020 15:53
Show Gist options
  • Save trvswgnr/bcf2a60229545ad1402e51cc595ec0dd to your computer and use it in GitHub Desktop.
Save trvswgnr/bcf2a60229545ad1402e51cc595ec0dd to your computer and use it in GitHub Desktop.
Codeship to WPEngine CI/CD Deploy Script
rm .gitignore
mv .gitignore-deploy .gitignore
cd wp-content/themes/standupstations/
npm install
npm run dev
git config --global user.name "CodeShip deployment"
git config --global user.email "[email protected]"
git remote add staging [email protected]:production/standupstaging.git
git add -A
git commit -m "Codeship deploy"
git push staging HEAD:refs/heads/master --force
@trvswgnr
Copy link
Author

trvswgnr commented Aug 11, 2020

  1. Get project-specific SSH key from Codeship project settings
  2. Add Codeship SSH key to WPEngine environment as Git Push user
  3. Add deploy script to Codeship
  4. Set build triggers to only needed branches

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment