Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to deploy to any install #24

Merged
merged 1 commit into from
Apr 27, 2021

Conversation

ryanshoover
Copy link
Owner

@ryanshoover ryanshoover commented Apr 9, 2021

Adds a feature to run the deploy_site job to deploy to any install.

If you push up a branch named deploy-mywpeinstall, then it will deploy to the mywpeinstall install.

Also updates the site example to include an example usage.

To test:

  1. Use any site that's set up to deploy with CircleCI
  2. Edit the .circleci/config.yml file
  3. Check out a new branch called deploy-nameofyourtestinstall
  4. Change the orb inclusion at the top to be wpengine: ryanshoover/wpengine@dev:367496c
  5. Add this blob to the bottom of the build_test_deploy workflow
                - wpengine/deploy_site:
                      name: deploy-site
                      environment: qa-site
                      requires:
                          - wpengine/lint
                          - wpengine/codeception
                      filters:
                          branches:
                              only:
                                  - /deploy-.*/
    
  6. Push your branch to github
  7. You should see the branch deploy to your install

@ryanshoover ryanshoover self-assigned this Apr 9, 2021
@ryanshoover ryanshoover requested a review from cgarza1992 April 27, 2021 01:54
@cgarza1992
Copy link
Collaborator

One the ssh key was added to the install for circle and the context set for the job it worked like a charm.

@ryanshoover
Copy link
Owner Author

@cgarza1992 We'll need a way to document the process for setting up a dev site including ssh key

@ryanshoover ryanshoover merged commit f92623e into master Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants