Closed claytoncollie closed 1 year ago
Here is my config file
# https://github.com/marketplace/actions/deploy-wordpress-to-wp-engine
name: Deployment
on:
workflow_call:
inputs:
install:
required: true
type: string
script:
required: true
type: string
secrets:
WPE_SSHG_KEY_PRIVATE:
required: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
stylelint:
uses: ./.github/workflows/stylelint.yml
eslint:
uses: ./.github/workflows/eslint.yml
phpcs:
uses: ./.github/workflows/phpcs.yml
phpstan:
uses: ./.github/workflows/phpstan.yml
deploy:
name: Build and Deploy
runs-on: ubuntu-latest
needs: [stylelint,eslint,phpcs,phpstan]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Build plugins and themes
run: ${{ inputs.script }}
- name: Deploy to WP Engine
uses: wpengine/github-action-wpe-site-deploy@v3.2.2
with:
WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }}
WPE_ENV: ${{ inputs.install }}
SRC_PATH: "."
REMOTE_PATH: "wp-content/"
FLAGS: -azvr --inplace --delete --exclude=".*" --exclude-from=./deploy-scripts/rsync-excludes.txt
CACHE_CLEAR: false
And then the file that kicks it off.
name: Deploy to Develop
on:
push:
branches:
- develop
jobs:
deploy:
uses: ./.github/workflows/deployment.yml
with:
install: <removed client name>
script: bash ./deploy-scripts/build-local-plugins-and-themes.sh
secrets:
WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }}
Hey @claytoncollie we've tried to reproduce the error in a fresh standard WordPress install with no success. I'd like to run a few test in the particular install that the error is happening, so would you mind reaching out WP Engine Support so we can ask you a few more questions related to the specific install that you're getting this error?
Hey @claytoncollie
It looks like you have a custom mu-plugins
loader and it does not load WP Engine's default mu-plugins
. The clear cache command that CACHE_CLEAR
uses is based on classes defined in our mu-plugins
and that's basically why it is failing and showing those errors.
Thank you so much for looking into the install @marksabbath
I will adjust it accordingly.
Please close this issue.
I am using the latest version of this repository and when I set the
CACHE_CLEAR
flag totrue
I am met with a fatal error. When I set the flag tofalse
I do not see the error and my pipeline completed properly.Expected behavior
No errors should be presented.
Build Output & Screenshots
Version information