Deployment docker image reference
Use our simple docker container for automatic deployments from your preferred CI/CD tool. Variables for the container are described below.
Docker Image code
Docker Image variables
- MWCS_DEPLOY_DEST (Required)
- Destination path for the code to be deployed to. Examples:
- Deploying to the app's root directory:
- Deploying a WordPress theme:
- MWCS_INTEGRATION_SECRET (Required)
- The integration secret that was created when you set up a new Git integration. For security purposes, this should always use a protected variable whenever possible. Examples:
- As a protected variable:
- As plain-text:
- You can get your Integration Secret from your Managed WooCommerce Stores Overview. In the Git Deploy section, for the integration you want to use, select Edit, and then next to Integration Secret, select .
- MWCS_INTEGRATION_ID (Required)
- The integration ID that was created when you set up a new Git integration. Examples:
- You can get your Integration ID from your Managed WooCommerce Stores Overview. In the Git Deploy section, for the integration you want to use, select Edit, and then next to Integration ID, select .
- MWCS_APP_ID (Required)
- ID of the app that you will be deploying to. Example:
- You can find the MWCS_APP_ID value in your Managed WooCommerce Stores Overview. In the Git Deploy section, next to Production Id or Staging Id select . For example, you could set up one branch to deploy to your staging site, and another branch to deploy to production.
- MWCS_WORKING_DIR (Optional)
- Working directory to be deployed. If left empty, uses your CI/CD tool's default directory. It is useful for deploying from a different directory inside your build environment, such as when the repository needs to be built before deploying. Examples:
- Using Bitbucket's default clone directory variable:
- Using a manually defined build path: