Nothing to configure to run
wpc in a pipeline: the interactive rendering
turns itself off outside a terminal (and whenever CI is set), so every
command below behaves exactly as it prints here. Use --output=json when you
need to parse the result.Use the Docker image
The CLI is published on Docker Hub with PHP, thezip extension, composer, git and unzip. The image has no
entrypoint: wpc is on the PATH, so it works as a GitLab CI job image as is.
The
php8.x and <version>-php8.x tags are published from 2.0.0 onwards; 1.x
releases only have <version> tags. Pin a full X.Y.Z version in pipelines you
want to keep stable. There are no X.Y or X tags.
Example of CI/CD with Gitlab
Example of .gitlab-ci.yml file to put in your git project :.gitlab-ci.yml
Use the CLI in your own image
If your build needs other tools or PHP extensions, copy thewpc binary from
the official image into yours. Your image must provide PHP 8.2 or later with the
zip extension, which wpc plugin build needs:
Dockerfile