Skip to main content
Version: Current (3.x)

Deploying the Customizer

Steps​

  1. Update the ansible playbook in custom/deploy/deploy.yml to include the new customizer.
 - name: Install files
ansible.builtin.copy:
src: "../../{{ item }}"
dest: "{{ systemd_service['Service.WorkingDirectory'] }}/{{ item | dirname }}/"
loop:
- docker-compose.yml
- custom/deploy/nginx.conf
- docs/Dockerfile
- front
- front/Dockerfile
+ - custom/wp-customizer
+ - custom/wp-customizer/blocks
+ - custom/wp-customizer/blocks/build
notify:
- Restart stack
  1. Update the Jenkinsfile to build the customizer.
  stages {
+ stage('Build WP Customizer') {
+ agent {
+ docker {
+ image 'node:22-slim'
+ label 'docker'
+ }
+ }
+ steps {
+ dir('custom/wp-customizer/blocks') {
+ sh 'npm install --global corepack@latest'
+ sh 'corepack enable'
+ sh 'corepack prepare pnpm@latest-10 --activate'
+ sh 'pnpm install'
+ sh 'pnpm run build'
+ }
+ }
+ }
stage('Build All')

After the customizer is built, it will be deployed together with the other services.